cleanup install
This commit is contained in:
parent
02bde095e4
commit
eb26c71a6b
1 changed files with 0 additions and 14 deletions
14
install.py
14
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
|
||||
|
|
Loading…
Reference in a new issue