Browse Source

Dont run as service #350

pull/351/head
GilbN 3 years ago
parent
commit
a094b0fe6c
  1. 4
      docker/root/etc/services.d/themepark/run
  2. 2
      themes.py

4
docker/root/etc/services.d/themepark/run

@ -1,4 +0,0 @@
#!/usr/bin/with-contenv bash
exec \
python3 /config/www/themes.py

2
themes.py

@ -139,7 +139,7 @@ if __name__ == "__main__":
themes = [name for name in listdir('./css/theme-options') if isfile(join('./css/theme-options', name))]
community_themes = [name for name in listdir('./css/community-theme-options') if isfile(join('./css/community-theme-options', name))]
develop = True if isdir(".git") and subprocess.check_output(["git", "symbolic-ref", "--short", "HEAD"]).decode('ascii').strip() == "develop" else False
if env_domain:
if env_domain and env_domain != '$http_host':
DOMAIN = env_domain
else:
with open("CNAME", "rt", closefd=True) as cname:

Loading…
Cancel
Save