From 6371685ec8aab43cbce7e394fe4074be50adbfc5 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Mon, 16 Mar 2015 11:41:43 +0000 Subject: [PATCH] Reboot function in the admin/tools menu Reboot function (to be done !), to add the possibility of remotely rebooting the yunohost system. The function added is JUST AN EXAMPLE and needs to be done properly. --- src/js/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/app.js b/src/js/app.js index db4422ae..03d72a63 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -1757,6 +1757,11 @@ app = Sammy('#main', function (sam) { sam.get('#/tools/ca', function (c) { c.view('tools/tools_ca'); }); + + // System Reboot + sam.get('#/tools/reboot_server', function (c) { + c.api('tools/reboot_server') { + }); // Security feed sam.get('#/tools/security-feed', function (c) {