diff options
-rw-r--r-- | ddns.php | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |