No restart after update (#2242)

This commit is contained in:
Lola Dam 2019-11-01 19:36:44 +01:00 committed by ZeroNet
parent 1f453b6c13
commit 1bfe328a1b
2 changed files with 5 additions and 3 deletions

View file

@ -38,8 +38,9 @@ def main():
import update
print("Updating...")
update.update()
print("Restarting...")
restart()
if main.restart_after_shutdown:
print("Restarting...")
restart()
else:
print("Shutting down...")
prepareShutdown()