From 9e2a95b6db3a2a30a9087b55e42743990e99e295 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Mon, 27 Nov 2017 14:58:42 -0600 Subject: [PATCH] Create vic-machine-server log directory. (#1147) (#1151) * Add mkdir for log directory * Wait on admiral startup for complete token --- installer/build/scripts/systemd/admiral/admiral.service | 2 +- .../systemd/vic_machine_server/configure_vic_machine_server.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/build/scripts/systemd/admiral/admiral.service b/installer/build/scripts/systemd/admiral/admiral.service index 643029f200..c31c601e27 100644 --- a/installer/build/scripts/systemd/admiral/admiral.service +++ b/installer/build/scripts/systemd/admiral/admiral.service @@ -1,7 +1,7 @@ [Unit] Description=Admiral is a highly scalable and very lightweight Container Management platform for deploying and managing container based applications. Documentation=https://github.com/vmware/admiral -After=vic-appliance-ready.target +After=vic-appliance-ready.target get_token.service Requires=vic-appliance-ready.target [Service] diff --git a/installer/build/scripts/systemd/vic_machine_server/configure_vic_machine_server.sh b/installer/build/scripts/systemd/vic_machine_server/configure_vic_machine_server.sh index d634f386b2..1659801fc9 100755 --- a/installer/build/scripts/systemd/vic_machine_server/configure_vic_machine_server.sh +++ b/installer/build/scripts/systemd/vic_machine_server/configure_vic_machine_server.sh @@ -110,6 +110,7 @@ function detectHostname { } chown -R 10000:10000 ${cert_dir} +mkdir -p ${log_dir} chown -R 10000:10000 ${log_dir} hostname=""