Quit primary watchdog.
This commit is contained in:
parent
0f67745296
commit
33283f81ca
@ -7,10 +7,12 @@ REMOTE="gandi"
|
||||
REMOTE_DIR="/var/powerdns/"
|
||||
DIR="$REMOTE_DIR"
|
||||
|
||||
VERBOSITY="0"
|
||||
|
||||
echo "directory: $DIR"
|
||||
|
||||
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"
|
||||
|
||||
# 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() {
|
||||
echo "TODO: local delete of domain $1"
|
||||
[ "$VERBOSITY" = "1" ] && echo "TODO: local delete of domain $1"
|
||||
}
|
||||
|
||||
remote_update() {
|
||||
echo "remote update on $REMOTE $REMOTE_DIR/$1"
|
||||
scp $DIR/$1 $REMOTE:$REMOTE_DIR
|
||||
[ "$VERBOSITY" = "1" ] && echo "remote update on $REMOTE $REMOTE_DIR/$1"
|
||||
scp -q $DIR/$1 $REMOTE:$REMOTE_DIR
|
||||
}
|
||||
|
||||
remote_delete() {
|
||||
echo "remote delete on $REMOTE $REMOTE_DIR/$1"
|
||||
ssh $REMOTE rm $REMOTE_DIR/$1
|
||||
[ "$VERBOSITY" = "1" ] && echo "remote delete on $REMOTE $REMOTE_DIR/$1"
|
||||
ssh -q $REMOTE rm $REMOTE_DIR/$1
|
||||
}
|
||||
|
||||
action() {
|
||||
|
Loading…
Reference in New Issue
Block a user