From 15fd093a5efa63f22c735c3492e3b2e281388027 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Thu, 21 Mar 2019 01:31:59 -0400 Subject: [PATCH] attempt start without sudo --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 817068a..d9498da 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -382,7 +382,7 @@ function DisplayLokinetConfig(){ } else { echo '' , PHP_EOL; }; - $filename = '/root/.lokinet/lokinet.ini'; + $filename = '/home/pi/.lokinet/lokinet.ini'; if (!file_exists($filename)) { echo '' , PHP_EOL; } else { @@ -599,7 +599,7 @@ function SaveTORAndVPNConfig(){ } } elseif( isset($_POST['StartLokinet']) ) { //echo "Attempting to start Lokinet"; - exec( 'sudo /home/pi/loki-network/lokilaunch.sh "start" > /dev/null &', $return ); + exec( '/home/pi/loki-network/lokilaunch.sh "start" > /dev/null &', $return ); } elseif( isset($_POST['StopLokinet']) ) { //echo "Attempting to stop Lokinet"; exec( 'sudo /home/pi/loki-network/lokilaunch.sh "stop" > /dev/null &', $return );