CI: erreur de syntaxe
DNS automated deployment / deploy (push) Successful in 1s Details

This commit is contained in:
Adrien Bourmault 2024-09-28 12:32:28 +02:00
parent 58490587c3
commit 42f28a9e63
Signed by: neox
GPG Key ID: 57BC26A3687116F6
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ jobs:
if [[ $line == -* ]]; then # Enregistrement supprimé if [[ $line == -* ]]; then # Enregistrement supprimé
RECORD=$(echo "$line" | sed 's/^+//' | sed "s/^\([^ ]\+\)\(\s\+\)\(IN\s\+\)\([^ ]\+\)\(\s\+\)/\1.${CURRENT_ZONE}.\2\3\4\5/" | sed 's/@.//') RECORD=$(echo "$line" | sed 's/^+//' | sed "s/^\([^ ]\+\)\(\s\+\)\(IN\s\+\)\([^ ]\+\)\(\s\+\)/\1.${CURRENT_ZONE}.\2\3\4\5/" | sed 's/@.//')
echo "update delete $RECORD" echo "update delete $RECORD"
echo -e "server ${{vars.DNS_SERVER}}\nttl 3600\nupdate add $RECORD\nsend" > temp_delete echo -e "server ${{vars.DNS_SERVER}}\nttl 3600\nupdate delete $RECORD\nsend" > temp_delete
nsupdate -k temp_keyfile temp_delete nsupdate -k temp_keyfile temp_delete
rm temp_delete rm temp_delete
fi fi