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 os
|
||||||
import re
|
import re
|
||||||
|
|
||||||
# change this
|
|
||||||
name = 'cms'
|
name = 'cms'
|
||||||
overwrite = (
|
|
||||||
#('home', 'indiancinema'),
|
|
||||||
#('infoView', 'indiancinema'),
|
|
||||||
)
|
|
||||||
|
|
||||||
base = abspath(dirname(__file__))
|
base = abspath(dirname(__file__))
|
||||||
os.chdir(base)
|
os.chdir(base)
|
||||||
|
@ -23,15 +18,6 @@ for root, folders, files in os.walk(join(base, 'static')):
|
||||||
os.unlink(target)
|
os.unlink(target)
|
||||||
os.symlink(rel_src, 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)
|
os.chdir(base)
|
||||||
src = join(base, 'config.jsonc')
|
src = join(base, 'config.jsonc')
|
||||||
target = '/srv/pandora/pandora/config.%s.jsonc' % name
|
target = '/srv/pandora/pandora/config.%s.jsonc' % name
|
||||||
|
|
Loading…
Reference in a new issue