linux - edit path for default errors, ignore comments in variables.env, install/prepare certbot

This commit is contained in:
bunkerity
2021-06-24 15:22:57 +02:00
parent b2cceb608c
commit bebe89afb0
5 changed files with 58 additions and 2 deletions

View File

@@ -3,6 +3,8 @@ def load_variables(path) :
with open(path) as f :
lines = f.read().splitlines()
for line in lines :
if line.startswith("#") :
continue
var = line.split("=")[0]
value = line[len(var)+1:]
variables[var] = value