CI: nouvelle erreur de syntaxe
DNS automated deployment / deploy (push) Successful in 2s
Details
DNS automated deployment / deploy (push) Successful in 2s
Details
This commit is contained in:
parent
0ee672731f
commit
b74cd18743
|
@ -34,7 +34,7 @@ jobs:
|
|||
"-"*IN* | "+"*IN*)
|
||||
if [ ! -z $CURRENT_ZONE ]; then
|
||||
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 -e "server ${{vars.DNS_SERVER}}\nttl 3600\nupdate delete $RECORD\nsend" > temp_delete
|
||||
nsupdate -k temp_keyfile temp_delete
|
||||
|
|
Loading…
Reference in New Issue