From da4e9815446731a69475d3aa4dd9fcc64a192fa4 Mon Sep 17 00:00:00 2001 From: Eric Gable Date: Thu, 6 Mar 2014 12:38:18 -0800 Subject: [PATCH] Create the status and config dirs after manifest is read. --- waagent | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/waagent b/waagent index 2a038f3..af2b1bc 100755 --- a/waagent +++ b/waagent @@ -2713,6 +2713,9 @@ class ExtensionsConfig(object): Error('Unable to read installCmd') continue Log("installCommand = " + cmd) + # create the status and config dirs + waagent.Run('mkdir -p ' + root + '/status') + waagent.Run('mkdir -p ' + root + '/config') # write out the goalStateIncarnation.settings file in the config path. incarnation=self.Extensions.getAttribute("goalStateIncarnation") version=self.Extensions.getAttribute("version") @@ -2720,9 +2723,6 @@ class ExtensionsConfig(object): #create HandlerEnvironment.json handler_env='{ "version": 1.0, "handlerEnvironment": { "logFolder": "/var/log", "configFolder": "' + root + '/config", "statusFolder": "' + root + '/status", "heartbeatFile": "'+ root + '/heartbeat.log"}}' waagent.SetFileContents(root+'/HandlerEnvironment.json',handler_env) - # create the status and config dirs - waagent.Run('mkdir -p ' + root + '/status') - waagent.Run('mkdir -p ' + root + '/config') #create script filepath=root+'/installmyplugin.sh' SetFileContents(filepath,"cd " + root + "; " +cmd)