Fix the config task
This commit is contained in:
parent
8f83679c48
commit
689375a2fe
2 changed files with 10 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue