[rt46602] Add $SEDPORTS variable to help with @PORT@ and @CONTROLPORT@ replacement
This commit is contained in:
committed by
Stephen Morris
parent
d2c8286163
commit
e6802badc0
@@ -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`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user