[rt46602] Add $SEDPORTS variable to help with @PORT@ and @CONTROLPORT@ replacement

This commit is contained in:
Ondřej Surý
2017-10-18 15:11:08 +02:00
committed by Stephen Morris
parent d2c8286163
commit e6802badc0
4 changed files with 38 additions and 35 deletions

View File

@@ -346,7 +346,7 @@ status=`expr $status + $ret`
n=`expr $n + 1`
echo_i "updating ns1/named.conf ($n)"
ret=0
sed -e "s/@PORT@/${port}/g;s/@CONTROLPORT@/${controlport}/g" < ns1/named2.conf.in > ns1/named.conf
$SEDPORTS < ns1/named2.conf.in > ns1/named.conf
if [ $ret != 0 ]; then echo_i "failed"; fi
status=`expr $status + $ret`