mirror of
https://github.com/HelloZeroNet/ZeroNet.git
synced 2023-12-14 04:33:03 +01:00
No restart after update (#2242)
This commit is contained in:
parent
1f453b6c13
commit
1bfe328a1b
|
@ -1124,6 +1124,7 @@ class UiWebsocket(object):
|
|||
|
||||
import main
|
||||
main.update_after_shutdown = True
|
||||
main.restart_after_shutdown = True
|
||||
SiteManager.site_manager.save()
|
||||
main.file_server.stop()
|
||||
main.ui_server.stop()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue