summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2023-07-21 14:21:05 +0200
committerMatthieu Saulnier <fantom@fedoraproject.org>2023-07-21 14:21:05 +0200
commit66de17115cf46481b6185671ef200bf45fbe8a7a (patch)
treec0ba1eeee93f57851de3e77ca0beeb50ad3a33f4 /bin
parent9af331587e4a4b9e54994f6213052e3a8ccb39c1 (diff)
downloadplaybooks-ansible-66de17115cf46481b6185671ef200bf45fbe8a7a.tar.gz
playbooks-ansible-66de17115cf46481b6185671ef200bf45fbe8a7a.tar.xz
playbooks-ansible-66de17115cf46481b6185671ef200bf45fbe8a7a.zip
egrep is becoming obsolete
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dnssec-sign.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dnssec-sign.sh b/bin/dnssec-sign.sh
index 4da85e6..3182ceb 100755
--- a/bin/dnssec-sign.sh
+++ b/bin/dnssec-sign.sh
@@ -142,7 +142,7 @@ function sign {
cp -f $ZONEFILE $TMPZONEFILE
- SERIAL=$(/usr/sbin/named-checkzone $i $ZONEFILE | egrep -ho '[0-9]{10}')
+ SERIAL=$(/usr/sbin/named-checkzone $i $ZONEFILE | grep -E -ho '[0-9]{10}')
NEWSERIAL=$((SERIAL + 1))
echo -e "$OK new serial is: $NEWSERIAL"
VERSION=$(ls |grep 20 |tail -n 1)