Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-11-29 16:00:06 +01:00
parent 45273f6883
commit ee9aaac711
8 changed files with 11 additions and 14 deletions

View File

@ -130,7 +130,7 @@ def install(display, update):
logging.info("[update] stopping %s ..." % update['service'])
os.system("service %s stop" % update['service'])
os.system("mv %s %s" % (source_path, dest_path))
shutil.move(source_path, dest_path)
os.chmod("/usr/local/bin/%s" % name, 0o755)
logging.info("[update] restarting %s ..." % update['service'])
os.system("service %s start" % update['service'])