cleanup install

This commit is contained in:
j 2018-05-09 17:12:35 +01:00
parent 02bde095e4
commit eb26c71a6b

View file

@ -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