File fix_command_execution.patch of Package pihole-admin-lte

Index: AdminLTE-5.20.1/scripts/pi-hole/php/savesettings.php
===================================================================
--- AdminLTE-5.20.1.orig/scripts/pi-hole/php/savesettings.php
+++ AdminLTE-5.20.1/scripts/pi-hole/php/savesettings.php
@@ -425,7 +425,7 @@ if (isset($_POST['field'])) {
             if (isset($_POST['webtheme'])) {
                 global $available_themes;
                 if (array_key_exists($_POST['webtheme'], $available_themes)) {
-                    exec('sudo pihole -a theme '.$_POST['webtheme']);
+                    pihole_execute('pihole -a theme '.$_POST['webtheme']);
                 }
             }
             $success .= 'The webUI settings have been updated';