From fb45e88acca0864f80bbdb09b986eb8ade81a6d7 Mon Sep 17 00:00:00 2001 From: mischa Date: Mon, 8 May 2023 19:28:11 +0200 Subject: [PATCH] add new reset.pl to cease.sh for now, until further automation --- cease.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cease.sh b/cease.sh index c4b2c91..b289fe3 100755 --- a/cease.sh +++ b/cease.sh @@ -38,6 +38,7 @@ if vmctl show ${1%.txt} >/dev/null 2>&1; then if vmctl show ${1%.txt} | grep stopped >/dev/null 2>&1; then echo -n "Current rDNS: " dig +short -x $(grep -A2 ${1%.txt} /etc/dhcpd.conf | awk '/fixed/ {print $2}' | tr -d ';') + grep -A3 ${1%.txt} /etc/dhcpd.conf | awk '/fixed/ {print "ssh ns1.high5.nl doas ptrd/reset.pl " $2}' | tr -d ';' remove.pl ${1} deploy.pl rcctl restart dhcpd