Fix the config task

This commit is contained in:
Nico Schottelius 2020-12-20 19:17:03 +01:00
commit 689375a2fe
2 changed files with 10 additions and 5 deletions

View file

@ -49,7 +49,7 @@ def cdist_configure_wireguard_server(config, server):
log.debug("git committing wireguard changes")
subprocess.run(f"cd /aa{dirname} && git pull && git add {server} && git commit -m 'Updating config for ${server}' && git push",
subprocess.run(f"cd {dirname} && git pull && git add {server} && git commit -m 'Updating config for ${server}' && git push",
shell=True, check=True)
log.debug(f"Configuring VPN server {server} with cdist")
@ -58,4 +58,4 @@ def cdist_configure_wireguard_server(config, server):
# FIXME:
# ensure logs are on the server
# ensure exit codes are known
return "All good"
return True