From 7965ed2076abd23ab953bdf1ffc604bafb838212 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sun, 31 Mar 2019 23:34:03 -0400 Subject: [PATCH] add return --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 68130bc..6c212b6 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -636,8 +636,8 @@ function SaveTORAndVPNConfig(){ $bootstrap=str_replace("'", "", $bootstrap); $bootstrap=htmlspecialchars($bootstrap); //$bootstrap = escapeshellarg($bootstrap); - echo 'sudo /home/pi/loki-network/./lokilaunch.sh bootstrap '.$bootstrap.'\r'; - $output = shell_exec('sudo /home/pi/./loki-network/lokilaunch.sh bootstrap '.$bootstrap.'\r'); + echo 'sudo /home/pi/loki-network/./lokilaunch.sh bootstrap '.$bootstrap.'', $return; + $output = shell_exec('sudo /home/pi/./loki-network/lokilaunch.sh bootstrap '.$bootstrap.'',$return); echo "
$output
"; }