a-lec.org.zone: testing CI
/ deploy_script (push) Failing after 2s Details

This commit is contained in:
Adrien Bourmault 2024-08-20 17:49:34 +02:00
parent 0ddd512453
commit 166e9e34a0
Signed by: neox
GPG Key ID: 57BC26A3687116F6
1 changed files with 11 additions and 13 deletions

View File

@ -31,22 +31,20 @@ jobs:
if [ ! -z $CURRENT_ZONE ]; then
if [[ $line == -* ]]; then # Enregistrement supprimé
RECORD=$(echo "$line" | sed 's/^-//')
echo "- $RECORD"
# nsupdate -k $TSIG_KEY <<EOF
# server $DNS_SERVER
# zone $CURRENT_ZONE
# update delete $RECORD
# send
# EOF
echo "update delete $RECORD"
nsupdate -k $TSIG_KEY <<EOF
server $DNS_SERVER
update delete $RECORD
send
EOF
elif [[ $line == +* ]]; then # Enregistrement ajouté
RECORD=$(echo "$line" | sed 's/^+//')
echo "+ $RECORD"
# nsupdate -k $TSIG_KEY <<EOF
# server $DNS_SERVER
# zone $CURRENT_ZONE
# update add $RECORD
# send
# EOF
nsupdate -k $TSIG_KEY <<EOF
server $DNS_SERVER
update add $RECORD
send
EOF
fi
fi
;;