mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-21 18:16:03 +02:00
Correctly capture and log output from OpenDNSSEC
This commit is contained in:
parent
9bde05c4a5
commit
0737704be0
1 changed files with 4 additions and 1 deletions
|
@ -192,7 +192,10 @@ Coroutine::create(function () use ($pool, $log, $c) {
|
|||
chown("{$basePath}/{$cleanedTld}.zone", 'opendnssec');
|
||||
chgrp("{$basePath}/{$cleanedTld}.zone", 'opendnssec');
|
||||
|
||||
exec("ods-signer sign {$cleanedTld} 2>&1");
|
||||
exec("ods-signer sign {$cleanedTld} 2>&1", $output, $return_var);
|
||||
if ($return_var != 0) {
|
||||
$log->error("Failed to sign zone with OpenDNSSEC for {$cleanedTld}. Output: " . implode(" ", $output) . " Code: " . $return_var);
|
||||
}
|
||||
sleep(1);
|
||||
copy("/var/lib/opendnssec/signed/{$cleanedTld}", "/var/lib/bind/{$cleanedTld}.zone.signed");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue