diff --git a/docker/root/etc/services.d/themepark/run b/docker/root/etc/services.d/themepark/run deleted file mode 100644 index 3e1ae806..00000000 --- a/docker/root/etc/services.d/themepark/run +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/with-contenv bash - - exec \ - python3 /config/www/themes.py \ No newline at end of file diff --git a/themes.py b/themes.py index 26f56044..6458561a 100644 --- a/themes.py +++ b/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: