Merge pull request 'dyndns: Fix not executed cron jobs' (#492) from alex/netz39-infra-ansible:cron into master
Reviewed-on: Netz39_Admin/netz39-infra-ansible#492 Reviewed-by: Stefan Haun <tux@netz39.de>
This commit is contained in:
commit
7df49482c4
2 changed files with 4 additions and 4 deletions
roles
|
@ -1,6 +1,6 @@
|
|||
# /etc/cron.d/dd24-dyndns: Cron call to renew DynDNS entry
|
||||
|
||||
SHELL=/bin/sh
|
||||
SHELL=/bin/bash
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
*/5 * * * * root curl --silent --show-error "https://dynamicdns.key-systems.net/update.php?hostname={{dyndns_domain}}&password={{dyndns_password}}&ip={{dyndns_ip}}" > /dev/null 2> >(/usr/bin/logger -p user.error -t dd24)
|
||||
*/5 * * * * root curl --silent --show-error "https://dynamicdns.key-systems.net/update.php?hostname={{dyndns_domain}}&password={{dyndns_password}}&ip={{dyndns_ip}}" > >(grep 'code\|description' | paste -d',' - - | logger -p user.debug -t dd24) 2> >(/usr/bin/logger -p user.error -t dd24)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# /etc/cron.d/desec-dyndns: Cron call to renew DynDNS entry
|
||||
|
||||
SHELL=/bin/sh
|
||||
SHELL=/bin/bash
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
*/5 * * * * root curl --silent --show-error --user {{ dyndns_domain }}:{{ dyndns_token }} "https://update.dedyn.io/" > /dev/null 2> >(/usr/bin/logger -p user.error -t desec)
|
||||
*/5 * * * * root curl --silent --show-error --user {{ dyndns_domain }}:{{ dyndns_token }} "https://update.dedyn.io/" > >(logger -p user.debug -t desec) 2> >(/usr/bin/logger -p user.error -t desec)
|
||||
|
|
Loading…
Add table
Reference in a new issue