Quit primary watchdog.
This commit is contained in:
parent
0f67745296
commit
33283f81ca
@ -7,10 +7,12 @@ REMOTE="gandi"
|
|||||||
REMOTE_DIR="/var/powerdns/"
|
REMOTE_DIR="/var/powerdns/"
|
||||||
DIR="$REMOTE_DIR"
|
DIR="$REMOTE_DIR"
|
||||||
|
|
||||||
|
VERBOSITY="0"
|
||||||
|
|
||||||
echo "directory: $DIR"
|
echo "directory: $DIR"
|
||||||
|
|
||||||
local_update() {
|
local_update() {
|
||||||
echo "local update of domain $1"
|
[ "$VERBOSITY" = "1" ] && echo "local update of domain $1"
|
||||||
pdns_control bind-reload-now $1 | grep "no such domain"
|
pdns_control bind-reload-now $1 | grep "no such domain"
|
||||||
|
|
||||||
# In case the update cannot be done, it might be because the zone wasn't loaded at all.
|
# In case the update cannot be done, it might be because the zone wasn't loaded at all.
|
||||||
@ -20,17 +22,17 @@ local_update() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local_delete() {
|
local_delete() {
|
||||||
echo "TODO: local delete of domain $1"
|
[ "$VERBOSITY" = "1" ] && echo "TODO: local delete of domain $1"
|
||||||
}
|
}
|
||||||
|
|
||||||
remote_update() {
|
remote_update() {
|
||||||
echo "remote update on $REMOTE $REMOTE_DIR/$1"
|
[ "$VERBOSITY" = "1" ] && echo "remote update on $REMOTE $REMOTE_DIR/$1"
|
||||||
scp $DIR/$1 $REMOTE:$REMOTE_DIR
|
scp -q $DIR/$1 $REMOTE:$REMOTE_DIR
|
||||||
}
|
}
|
||||||
|
|
||||||
remote_delete() {
|
remote_delete() {
|
||||||
echo "remote delete on $REMOTE $REMOTE_DIR/$1"
|
[ "$VERBOSITY" = "1" ] && echo "remote delete on $REMOTE $REMOTE_DIR/$1"
|
||||||
ssh $REMOTE rm $REMOTE_DIR/$1
|
ssh -q $REMOTE rm $REMOTE_DIR/$1
|
||||||
}
|
}
|
||||||
|
|
||||||
action() {
|
action() {
|
||||||
|
Loading…
Reference in New Issue
Block a user