update
This commit is contained in:
@@ -40,13 +40,14 @@ class ModuleRoute(PluginModuleBase):
|
||||
@P.blueprint.route('/restart', methods=['GET'])
|
||||
@login_required
|
||||
def restart():
|
||||
F.restart()
|
||||
threading.Timer(1, F.restart).start()
|
||||
return render_template('system_restart.html',sub='restart', referer=request.headers.get("Referer"))
|
||||
|
||||
|
||||
@P.blueprint.route('/shutdown', methods=['GET'])
|
||||
@login_required
|
||||
def shutdown():
|
||||
F.shutdown()
|
||||
threading.Timer(1, F.shutdown).start()
|
||||
return render_template('system_restart.html',sub='shutdown', referer=request.headers.get("Referer"))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user