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
7721d852e2
commit
3907e583fb
|
@ -33,13 +33,13 @@ jobs:
|
||||||
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 $DNS_SERVER\nupdate delete $RECORD\nsend" > temp_delete
|
||||||
nsupdate -k ${{ secrets.TSIG_KEY }} temp
|
nsupdate -k "${{ secrets.TSIG_KEY }}" temp
|
||||||
rm temp
|
rm temp
|
||||||
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 $DNS_SERVER\nupdate add $RECORD\nsend" > temp_add
|
||||||
nsupdate -k ${{ secrets.TSIG_KEY }} temp
|
nsupdate -k "${{ secrets.TSIG_KEY }}" temp
|
||||||
rm add
|
rm add
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue