From: Emilie Date: Wed, 21 Dec 2016 10:23:49 +0000 (+0100) Subject: repair script path in install.py X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6614075947978f424c1cd5c987e91958f778b803;p=mezzo.git repair script path in install.py --- diff --git a/bin/install.py b/bin/install.py index b7eecbf5..86a9c046 100755 --- a/bin/install.py +++ b/bin/install.py @@ -163,7 +163,7 @@ class DockerCompositionInstaller(object): os.makedirs(log_path, 0o755) os.chown(log_path, getpwnam(self.user).pw_uid, getgrnam(self.user).gr_gid) path = "PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin\n" - command = "cd /srv/"+self.name+" && ./scripts/push.sh >> /var/log/"+ self.name +"/"+self.name+"-push.log 2>&1 \n" + command = "cd /srv/"+self.name+" && ./bin/push.sh >> /var/log/"+ self.name +"/"+self.name+"-push.log 2>&1 \n" rule = self.cron_rule % (self.user, command) f = open('/etc/cron.d/' + self.name, 'w') f.write(path + rule)