summaryrefslogtreecommitdiff
path: root/ddns.php
diff options
context:
space:
mode:
Diffstat (limited to 'ddns.php')
-rw-r--r--ddns.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/ddns.php b/ddns.php
index 6f3b80f..977e47c 100644
--- a/ddns.php
+++ b/ddns.php
@@ -194,10 +194,9 @@
// actually do something
$pin = popen('nsupdate -l', 'w');
if ($pin === FALSE)
- die();
+ die_http(500, 'Internal Server Error', 'Failed to update Zone.');
fwrite($pin, $updateCommand);
-
pclose($pin);
file_put_contents('/srv/http/vhosts/eckner.net/ddns/log', $logContent, FILE_APPEND | LOCK_EX);