Browse Source

Properly terminate the script.

Joe Clarke 5 years ago
parent
commit
475dac787b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      www/swreg/callhome.php

+ 3 - 0
www/swreg/callhome.php

@@ -81,4 +81,7 @@ if ($row['should_re_ztp'] == 1) {
     } catch (PDOException $e) {
         $logger->crit("Failed to reset re-ZTP bit for {$sn}: {$e->getMessage()}");
     }
+    exit(0);
 }
+
+echo "!\r\n";