.forgejo/workflows/ci.yaml: correcting error
/ deploy_script (push) Successful in 1s Details

This commit is contained in:
Adrien Bourmault 2024-08-20 18:10:07 +02:00
parent 1e270a9972
commit b4abb7a8a4
Signed by: neox
GPG Key ID: 57BC26A3687116F6
1 changed files with 2 additions and 2 deletions

View File

@ -33,13 +33,13 @@ jobs:
if [[ $line == -* ]]; then # Enregistrement supprimé if [[ $line == -* ]]; then # Enregistrement supprimé
RECORD=$(echo "$line" | sed 's/^-//') RECORD=$(echo "$line" | sed 's/^-//')
echo "update delete $RECORD" echo "update delete $RECORD"
echo -e "server $DNS_SERVER\nupdate delete $RECORD\nsend" > temp_delete echo -e "server ${{vars.DNS_SERVER}}\nupdate delete $RECORD\nsend" > temp_delete
nsupdate -k temp_keyfile temp_delete nsupdate -k temp_keyfile temp_delete
rm temp_delete rm temp_delete
elif [[ $line == +* ]]; then # Enregistrement ajouté elif [[ $line == +* ]]; then # Enregistrement ajouté
RECORD=$(echo "$line" | sed 's/^+//') RECORD=$(echo "$line" | sed 's/^+//')
echo "+ $RECORD" echo "+ $RECORD"
echo -e "server $DNS_SERVER\nupdate add $RECORD\nsend" > temp_add echo -e "server ${{vars.DNS_SERVER}}\nupdate add $RECORD\nsend" > temp_add
nsupdate -k temp_keyfile temp_add nsupdate -k temp_keyfile temp_add
rm temp_add rm temp_add
fi fi