a-lec.org.zone: testing CI
This commit is contained in:
parent
edf69129db
commit
7721d852e2
|
@ -32,19 +32,15 @@ jobs:
|
|||
if [[ $line == -* ]]; then # Enregistrement supprimé
|
||||
RECORD=$(echo "$line" | sed 's/^-//')
|
||||
echo "update delete $RECORD"
|
||||
nsupdate -k $TSIG_KEY <<ENDOFFILE
|
||||
server $DNS_SERVER
|
||||
update delete $RECORD
|
||||
send
|
||||
ENDOFFILE
|
||||
echo -e "server $DNS_SERVER\nupdate delete $RECORD\nsend" > temp_delete
|
||||
nsupdate -k ${{ secrets.TSIG_KEY }} temp
|
||||
rm temp
|
||||
elif [[ $line == +* ]]; then # Enregistrement ajouté
|
||||
RECORD=$(echo "$line" | sed 's/^+//')
|
||||
echo "+ $RECORD"
|
||||
nsupdate -k $TSIG_KEY <<ENDOFFILE
|
||||
server $DNS_SERVER
|
||||
update add $RECORD
|
||||
send
|
||||
ENDOFFILE
|
||||
echo -e "server $DNS_SERVER\nupdate add $RECORD\nsend" > temp_add
|
||||
nsupdate -k ${{ secrets.TSIG_KEY }} temp
|
||||
rm add
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue