From ca9aae15549d1941dfb78fc6ba7be5e6703e25f3 Mon Sep 17 00:00:00 2001 From: Serg Melikyan Date: Tue, 22 Apr 2014 18:45:55 +0400 Subject: [PATCH] Fixed name of the log file on VM Small fix for images with pre-created /etc/murano directory Change-Id: Ie5738b89efba7619f0d4e30500407ff0daea4f6a --- meta/io.murano/Resources/Agent-v2.template | 2 +- meta/io.murano/Resources/linux-init.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/io.murano/Resources/Agent-v2.template b/meta/io.murano/Resources/Agent-v2.template index b1f3db9d..772c2bc8 100644 --- a/meta/io.murano/Resources/Agent-v2.template +++ b/meta/io.murano/Resources/Agent-v2.template @@ -1,7 +1,7 @@ [DEFAULT] debug=True verbose=True -log_file = /var/log/murano-agnet.log +log_file = /var/log/murano-agent.log storage=/var/murano/plans diff --git a/meta/io.murano/Resources/linux-init.sh b/meta/io.murano/Resources/linux-init.sh index 9667f4b7..4146ea3e 100644 --- a/meta/io.murano/Resources/linux-init.sh +++ b/meta/io.murano/Resources/linux-init.sh @@ -4,7 +4,9 @@ service murano-agent stop AgentConfigBase64='%AGENT_CONFIG_BASE64%' -mkdir /etc/murano +if [[ ! -d /etc/murano ]]; then + mkdir /etc/murano +fi echo $AgentConfigBase64 | base64 -d > /etc/murano/agent.conf chmod 664 /etc/murano/agent.conf