shell exec as user.

pull/16/head
necro-nemesis 6 years ago
parent 24a01ff548
commit b19df04390

@ -604,6 +604,7 @@ function SaveTORAndVPNConfig()
<?php
$output = shell_exec('sudo /etc/init.d/dnsmasq stop');
echo "<pre><strong>$output</strong></pre>";
shell_exec('/home/$USER/loki-network/lokinet > /dev/null 2>&1 &');
$output = shell_exec('sudo /home/pi/loki-network/lokilaunch.sh start');
echo "<pre><strong>$output</strong></pre>";
/*sleep(5);*/

Loading…
Cancel
Save