a-lec.org.zone: testing CI
/ deploy_script (push) Successful in 2s
Details
/ deploy_script (push) Successful in 2s
Details
This commit is contained in:
parent
eec2fbf161
commit
81d7e8718c
|
@ -33,14 +33,14 @@ 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
|
||||
rm temp
|
||||
nsupdate -k "${{ secrets.TSIG_KEY }}" temp_delete
|
||||
rm temp_delete
|
||||
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 "${{ secrets.TSIG_KEY }}" temp_add
|
||||
rm temp_add
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue