Skip to content
Snippets Groups Projects

Corrections cloud

Merged Arthur Le Bars requested to merge corrections_cloud into dev
All threads resolved!
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -202,7 +202,7 @@ def make_traefik_compose_files(config, main_dir):
traefik_compose_file.truncate(0)
traefik_compose_file.write(traefik_compose_output)
if config["authelia_config_path"]:
if authelia_config_path in config.keys():
if not config["authelia_config_path"] == "" or not config["authelia_config_path"] == "/path/to/authelia/config":
if os.path.isfile(os.path.abspath(config["authelia_config_path"])):
try:
@@ -217,8 +217,10 @@ def make_traefik_compose_files(config, main_dir):
# authelia_config_file.truncate(0)
# authelia_config_file.write(authelia_config_output)
else:
logging.critical("Cannot find authelia configuration template path (%s)" % config["authelia_config_path"])
logging.critical("Cannot find authelia configuration path (%s)" % config["authelia_config_path"])
sys.exit()
else:
logging.critical("Invalid authelia configuration path (%s)" % config["authelia_config_path"])
# Path to the authelia users in the repo
authelia_users_path = script_dir + "/templates/authelia_users_template.yml"
Loading