a-lec.org.zone: testing CI
All checks were successful
/ deploy_script (push) Successful in 2s

This commit is contained in:
Adrien Bourmault 2024-08-20 17:54:58 +02:00
parent 7721d852e2
commit 3907e583fb
Signed by: neox
GPG key ID: 57BC26A3687116F6

View file

@ -33,13 +33,13 @@ jobs:
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
nsupdate -k "${{ secrets.TSIG_KEY }}" temp
rm temp
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
nsupdate -k "${{ secrets.TSIG_KEY }}" temp
rm add
fi
fi