fix global.env generation and add web UI gif to README

This commit is contained in:
florian
2021-08-09 20:56:52 +02:00
parent 0573ba7b5a
commit 8e4a65feca
3 changed files with 13 additions and 2 deletions

View File

@@ -58,9 +58,18 @@ class Templator :
return False
def __save_config(self, type, config) :
first_servers = config["SERVER_NAME"].split(" ")
data = ""
for variable, value in config.items() :
if not self.__filter_var(variable) :
if self.__filter_var(variable) :
continue
add = True
if type == "global" :
for first_server in first_servers :
if variable.startswith(first_server + "_") :
add = False
break
if add :
data += variable + "=" + value + "\n"
file = self.__output_path
if type == "global" :