From 80eaa16354f31eba6e684018d9ca85e08ff2f817 Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 6 Dec 2019 18:43:40 -0600 Subject: Set paths consistantly --- www/commission/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www') diff --git a/www/commission/index.php b/www/commission/index.php index 00546ab..3e87e7a 100644 --- a/www/commission/index.php +++ b/www/commission/index.php @@ -156,7 +156,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){ $password_err = $result2; $username_err = $result; // Disable commissioning - $cmd = "echo 'ENABLED=\"no\"' >/var/config/default/commissioning 2>&1"; + $cmd = "echo 'ENABLED=\"no\"' >/run/mt-commission 2>&1"; $handle = popen($cmd, 'r'); $result = trim(fread($handle, 4192)); $status = pclose($handle); @@ -166,7 +166,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){ } else { // shut off web server $cmd = "/usr/sbin/start-stop-daemon -S -p /var/run/commissionoff.pid -b -a /bin/bash -- -c " . - "/usr/libexec/commissioning/off.sh"; + "/usr/libexec/commission/off.sh"; syslog(LOG_ALERT, "turn off web server: command: $cmd"); $handle = popen($cmd, 'r'); $result = trim(fread($handle, 4192)); -- cgit v1.2.3