Compare commits

..

No commits in common. "3907e583fba636f00e6a7e22a8673158821daf37" and "edf69129dbf916e157a846a0d8fcf9608894d3af" have entirely different histories.

1 changed files with 10 additions and 6 deletions

View File

@ -32,15 +32,19 @@ jobs:
if [[ $line == -* ]]; then # Enregistrement supprimé
RECORD=$(echo "$line" | sed 's/^-//')
echo "update delete $RECORD"
echo -e "server $DNS_SERVER\nupdate delete $RECORD\nsend" > temp_delete
nsupdate -k "${{ secrets.TSIG_KEY }}" temp
rm temp
nsupdate -k $TSIG_KEY <<ENDOFFILE
server $DNS_SERVER
update delete $RECORD
send
ENDOFFILE
elif [[ $line == +* ]]; then # Enregistrement ajouté
RECORD=$(echo "$line" | sed 's/^+//')
echo "+ $RECORD"
echo -e "server $DNS_SERVER\nupdate add $RECORD\nsend" > temp_add
nsupdate -k "${{ secrets.TSIG_KEY }}" temp
rm add
nsupdate -k $TSIG_KEY <<ENDOFFILE
server $DNS_SERVER
update add $RECORD
send
ENDOFFILE
fi
fi
;;