From 03263d9617d2ef68cae7a736f81e7a2bdebe4648 Mon Sep 17 00:00:00 2001 From: Pecusx Date: Tue, 10 Oct 2017 21:27:05 +0200 Subject: [PATCH] First maintenance button in web-interface. --- html/changeconf.php | 10 ++++++++++ html/hconfig.php | 3 +++ 2 files changed, 13 insertions(+) diff --git a/html/changeconf.php b/html/changeconf.php index cceb637..1479833 100755 --- a/html/changeconf.php +++ b/html/changeconf.php @@ -33,6 +33,16 @@ if (isset($msg)) { echo " window.location.href = 'index.html';\r\n"; echo "}, 30000);\r\n"; echo "\r\n"; + } elseif ($msg == "clear_caches") { + $end = shell_exec('sudo ./scripts/clear_caches.sh'); + echo "Clear logs and caches.
\r\n"; + echo "Wait!
\r\n"; + echo "\r\n"; } elseif ($msg == "audio") { $selected = $_POST['output']; $hda = $_POST['hda']; diff --git a/html/hconfig.php b/html/hconfig.php index 9fc897d..3aa06b0 100644 --- a/html/hconfig.php +++ b/html/hconfig.php @@ -91,6 +91,9 @@ for ($i = 0; $i < count($remoteconfigs); $i++) { Update to last build from github
+Maintenance
+ +