.forgejo/workflows/ci.yaml: correcting error with records
/ deploy_script (push) Successful in 1s
Details
/ deploy_script (push) Successful in 1s
Details
This commit is contained in:
parent
17beaf9039
commit
75e2041b0f
|
@ -31,14 +31,14 @@ jobs:
|
||||||
"-"* | "+"*)
|
"-"* | "+"*)
|
||||||
if [ ! -z $CURRENT_ZONE ]; then
|
if [ ! -z $CURRENT_ZONE ]; then
|
||||||
if [[ $line == -* ]]; then # Enregistrement supprimé
|
if [[ $line == -* ]]; then # Enregistrement supprimé
|
||||||
RECORD=$(echo "$line" | sed 's/^-//')
|
RECORD=$(echo "$line" | sed 's/^+//' | sed 's/^\([^ ]\+\)\(\s\+\)\(IN A\)\(\s\+\)[^ ]\+/\1.a-lec.org.\2\3/')
|
||||||
echo "update delete $RECORD"
|
echo "update delete $RECORD"
|
||||||
echo -e "server ${{vars.DNS_SERVER}}\nupdate delete $RECORD\nsend" > temp_delete
|
echo -e "server ${{vars.DNS_SERVER}}\nupdate delete $RECORD\nsend" > temp_delete
|
||||||
nsupdate -6 -k temp_keyfile temp_delete
|
nsupdate -6 -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/^+//' | sed 's/^\([^ ]\+\)\(\s\+\)\(IN A\)/\1.a-lec.org.\2\3/')
|
||||||
echo "+ $RECORD"
|
echo "update add $RECORD"
|
||||||
echo -e "server ${{vars.DNS_SERVER}}\nupdate add $RECORD\nsend" > temp_add
|
echo -e "server ${{vars.DNS_SERVER}}\nupdate add $RECORD\nsend" > temp_add
|
||||||
nsupdate -6 -k temp_keyfile temp_add
|
nsupdate -6 -k temp_keyfile temp_add
|
||||||
rm temp_add
|
rm temp_add
|
||||||
|
|
Loading…
Reference in New Issue