summaryrefslogtreecommitdiff
path: root/www/commission
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-12-06 18:43:40 -0600
committerJohn Klug <john.klug@multitech.com>2019-12-06 18:43:40 -0600
commit80eaa16354f31eba6e684018d9ca85e08ff2f817 (patch)
tree156bc810613136f088a3a2748b290bd2f21b2427 /www/commission
parent9d870ac83b48cb6187fdc784c2e18179f906759a (diff)
downloadcommissioning-80eaa16354f31eba6e684018d9ca85e08ff2f817.tar.gz
commissioning-80eaa16354f31eba6e684018d9ca85e08ff2f817.tar.bz2
commissioning-80eaa16354f31eba6e684018d9ca85e08ff2f817.zip
Set paths consistantly
Diffstat (limited to 'www/commission')
-rw-r--r--www/commission/index.php4
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));