From: yomguy Date: Thu, 5 Jan 2012 12:26:13 +0000 (+0100) Subject: fix conf dir creation X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=1ff2f2cc926755aa960a1678ba3f8181fa4a9afd;p=telecaster-cgi.git fix conf dir creation --- diff --git a/install.py b/install.py index ac863a7..385f054 100644 --- a/install.py +++ b/install.py @@ -72,12 +72,12 @@ os.system('chown -R ' + user + ':' + user + ' ' + install_dir) conf_dir = '/etc/telecaster' if not os.path.exists(conf_dir): - os.mkdir(conf_dir) -else: - in_files = os.listdir('conf'+conf_dir) - for file in in_files: - if not os.path.exists(conf_dir+os.sep+file) and not '.svn' in file: - shutil.copy('conf'+conf_dir+os.sep+file, conf_dir+os.sep+file) + os.system('sudo mkdir '+conf_dir) + os.system('sudo chown '+user+ ':'+user+' '+conf_dir) +in_files = os.listdir('conf'+conf_dir) +for file in in_files: + if not os.path.exists(conf_dir+os.sep+file) and not '.svn' in file: + shutil.copy('conf'+conf_dir+os.sep+file, conf_dir+os.sep+file) daemons = ['jackd', 'vncserver']