From eb26c71a6bb90a943cc2de67e8fbb2bd52fa7be9 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 9 May 2018 17:12:35 +0100 Subject: [PATCH] cleanup install --- install.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/install.py b/install.py index 9f8d049..592b6d9 100755 --- a/install.py +++ b/install.py @@ -4,12 +4,7 @@ from os.path import join, abspath, basename, dirname import os import re -# change this name = 'cms' -overwrite = ( - #('home', 'indiancinema'), - #('infoView', 'indiancinema'), -) base = abspath(dirname(__file__)) os.chdir(base) @@ -23,15 +18,6 @@ for root, folders, files in os.walk(join(base, 'static')): os.unlink(target) os.symlink(rel_src, target) -if overwrite: - os.chdir('/srv/pandora/static/js') - for filename, sitename in overwrite: - src = '%s.%s.js' % (filename, sitename) - target = '%s.%s.js' % (filename, name) - if os.path.exists(target): - os.unlink(target) - os.symlink(src, target) - os.chdir(base) src = join(base, 'config.jsonc') target = '/srv/pandora/pandora/config.%s.jsonc' % name