1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-10-03 22:17:08 +02:00

Dont run as service #350

This commit is contained in:
GilbN 2022-03-28 18:11:58 +02:00
parent 1a0b36a8a2
commit a094b0fe6c
2 changed files with 1 additions and 5 deletions

View File

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

View File

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