diff options
author | John Klug <john.klug@multitech.com> | 2019-12-06 18:43:40 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-12-06 18:43:40 -0600 |
commit | 80eaa16354f31eba6e684018d9ca85e08ff2f817 (patch) | |
tree | 156bc810613136f088a3a2748b290bd2f21b2427 /www/commission | |
parent | 9d870ac83b48cb6187fdc784c2e18179f906759a (diff) | |
download | commissioning-80eaa16354f31eba6e684018d9ca85e08ff2f817.tar.gz commissioning-80eaa16354f31eba6e684018d9ca85e08ff2f817.tar.bz2 commissioning-80eaa16354f31eba6e684018d9ca85e08ff2f817.zip |
Set paths consistantly
Diffstat (limited to 'www/commission')
-rw-r--r-- | www/commission/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |