From: yomguy Date: Fri, 19 Nov 2010 13:31:32 +0000 (+0000) Subject: add log mkdir X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e4dc2b55191faad9dbb59a2922817918133b1d66;p=telecaster-cgi.git add log mkdir --- diff --git a/install.py b/install.py index 7ce915c..76b50fd 100644 --- a/install.py +++ b/install.py @@ -102,6 +102,10 @@ if not os.path.exists(apache_conf): shutil.copy('conf'+apache_conf, apache_conf) os.system('/etc/init.d/apache2 reload') +log_dir = '/var/log/telecaster' +os.mkdir(log_dir) +os.system('chown -R ' + user + ':' + user + ' ' + log_dir) + print """ Installation successfull !