a-lec.org.zone: testing CI
/ deploy_script (push) Failing after 2s
Details
/ deploy_script (push) Failing after 2s
Details
This commit is contained in:
parent
0ddd512453
commit
166e9e34a0
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue