This commit is contained in:
j 2017-06-09 09:25:43 +02:00
commit ae3afc93c3
2 changed files with 5 additions and 5 deletions

View file

@ -278,11 +278,11 @@ def update_static():
if os.path.splitext(f)[-1] in ('.js', '.json'):
f = os.path.join(root, f)
os.system('gzip -9 -c "%s" > "%s.gz"' % (f, f))
for name in ('logo', 'icon', 'document'):
site = os.path.join(settings.STATIC_ROOT, 'png/%s.%s.png'%(name, settings.CONFIG['site']['id']))
pandora = os.path.join(settings.STATIC_ROOT, 'png/%s.pandora.png'%name)
image = os.path.join(settings.STATIC_ROOT, 'png/%s.png'%name)
site = os.path.join(settings.STATIC_ROOT, 'png/%s.%s.png' % (name, settings.CONFIG['site']['id']))
pandora = os.path.join(settings.STATIC_ROOT, 'png/%s.pandora.png' % name)
image = os.path.join(settings.STATIC_ROOT, 'png/%s.png' % name)
if not os.path.exists(image):
if os.path.exists(site):
shutil.copyfile(site, image)