File fix_command_execution.patch of Package pihole-admin-lte
14
1
Index: AdminLTE-5.20.1/scripts/pi-hole/php/savesettings.php
2
===================================================================
3
--- AdminLTE-5.20.1.orig/scripts/pi-hole/php/savesettings.php
4
+++ AdminLTE-5.20.1/scripts/pi-hole/php/savesettings.php
5
6
if (isset($_POST['webtheme'])) {
7
global $available_themes;
8
if (array_key_exists($_POST['webtheme'], $available_themes)) {
9
- exec('sudo pihole -a theme '.$_POST['webtheme']);
10
+ pihole_execute('pihole -a theme '.$_POST['webtheme']);
11
}
12
}
13
$success .= 'The webUI settings have been updated';
14