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

This commit is contained in:
Adrien Bourmault 2024-08-20 17:51:19 +02:00
parent 166e9e34a0
commit edf69129db
Signed by: neox
GPG Key ID: 57BC26A3687116F6
1 changed files with 4 additions and 4 deletions

View File

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