fixed cron issues

This commit is contained in:
tracer 2024-04-22 18:57:49 +02:00
parent 3e591eee9c
commit c9757ead13
3 changed files with 6 additions and 4 deletions

View File

@ -1,8 +1,8 @@
{
"name": "24unix/bindapi",
"description": "manage Bind9 DNS server via REST API",
"version": "1.0.7",
"build_number": "352",
"version": "1.0.8",
"build_number": "353",
"authors": [
{
"name": "Micha Espey",

View File

@ -2,4 +2,4 @@
Description=BindAPI Service to check zone file and reload configuration
[Service]
ExecStart=/home/users/<user>/<bindApi>/bin/console cron:run -q
ExecStart=/home/users/<user>/<bindApi>/bin/console -q cron:run

View File

@ -103,7 +103,9 @@ class DomainController
}
}
} else {
echo COLOR_DEFAULT . 'We are master for ' . COLOR_YELLOW . $domain->getName() . PHP_EOL;
if (!$this->quiet) {
echo COLOR_DEFAULT . 'We are master for ' . COLOR_YELLOW . $domain->getName() . PHP_EOL;
}
}
}
// remove stale zones