awk and toupper is not portable, use sed instead

This commit is contained in:
Mark Andrews
2012-05-21 10:17:35 +10:00
parent b28d4aa918
commit 6ea1ba16ba
+1 -1
View File
@@ -365,7 +365,7 @@ zskname=`$KEYGEN -q -r $RANDFILE -f KSK $zone`
cp $infile $zonefile
$SIGNER -P -S -r $RANDFILE -o $zone -f $lower $zonefile > /dev/null 2>&1
$CHECKZONE -D upper.example $lower 2>&- | \
awk '$4 == "RRSIG" {$12 = toupper($12); print; next} { print }' > $signedfile
sed '/RRSIG/s/ upper.example. / UPPER.EXAMPLE. /' > $signedfile
#
# Check that the signer's name is in lower case when zone name is in