From 12e734705e88120b1fb1993f4e6d88ad44c54ca3 Mon Sep 17 00:00:00 2001 From: yomguy <> Date: Fri, 26 Nov 2010 13:22:01 +0000 Subject: [PATCH] fixbug install --- install.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.py b/install.py index 53201ed..5a144b5 100644 --- a/install.py +++ b/install.py @@ -73,7 +73,12 @@ os.system('chown -R ' + user + ':' + user + ' ' + install_dir) conf_dir = '/etc/telecaster' if not os.path.exists(conf_dir): - shutil.copytree('conf'+conf_dir, conf_dir, ignore=shutil.ignore_patterns('*.svn*')) + 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) daemons = ['jackd', 'vncserver'] init_dir = '/etc/init.d/' -- 2.39.5