]> git.parisson.com Git - telecaster-cgi.git/commitdiff
fix conf dir creation
authoryomguy <yomguy@parisson.com>
Thu, 5 Jan 2012 12:26:13 +0000 (13:26 +0100)
committeryomguy <yomguy@parisson.com>
Thu, 5 Jan 2012 12:26:13 +0000 (13:26 +0100)
install.py

index ac863a70a24785d35bf96ca158b0859576a045de..385f05498266c257b1acbc6d45e4d6c88f8484a4 100644 (file)
@@ -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']