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 [ ! -z $CURRENT_ZONE ]; then
if [[ $line == -* ]]; then # Enregistrement supprimé if [[ $line == -* ]]; then # Enregistrement supprimé
RECORD=$(echo "$line" | sed 's/^-//') RECORD=$(echo "$line" | sed 's/^-//')
echo "- $RECORD" echo "update delete $RECORD"
# nsupdate -k $TSIG_KEY <<EOF nsupdate -k $TSIG_KEY <<EOF
# server $DNS_SERVER server $DNS_SERVER
# zone $CURRENT_ZONE update delete $RECORD
# update delete $RECORD send
# send EOF
# EOF
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 <<EOF
# server $DNS_SERVER server $DNS_SERVER
# zone $CURRENT_ZONE update add $RECORD
# update add $RECORD send
# send EOF
# EOF
fi fi
fi fi
;; ;;