diff --git a/conf-template.json b/conf-template.json index 27c1f89..669be27 100644 --- a/conf-template.json +++ b/conf-template.json @@ -1,6 +1,7 @@ { "chkinterval": "", "filepath": "", + "srcurl": "", "server": "", "port": "", "ssh-user": "", diff --git a/deploy.py b/deploy.py index 3db6e0c..97d14c3 100644 --- a/deploy.py +++ b/deploy.py @@ -25,7 +25,7 @@ def healthcheck(): healthstatus = "ok" def downloadLatestCommands(): - r = requests.get(f'{url}') + r = requests.get(cfg['srcurl']) open(cfg["filepath"], 'wb').write(r.content) def commandList():