diff options
author | Linus Nordberg <linus@nordu.net> | 2017-02-16 08:13:59 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-02-16 08:13:59 +0100 |
commit | 320e7346ab80feb58a75703e2fa79fb31887394d (patch) | |
tree | b7173bb0ae1ad4f7ed4c8ad74e6770b84fa6b23c /tools/getconfig.sh | |
parent | 2de232899d668a04084fb361f5956a7f0052ed58 (diff) |
Replace use of nc(1) in getconfig.sh with new plopcontrol.py.
Diffstat (limited to 'tools/getconfig.sh')
-rwxr-xr-x | tools/getconfig.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/getconfig.sh b/tools/getconfig.sh index 9b75ce9..2ce9be3 100755 --- a/tools/getconfig.sh +++ b/tools/getconfig.sh @@ -15,7 +15,7 @@ plopcontrolport= configversion="unknown" if [ "${plopcontrolfile}" != "force-compile" -a -f ${plopcontrolfile} ]; then plopcontrolport=$(cat ${plopcontrolfile}) - configversion=$(echo "configversion" | nc 127.0.0.1 ${plopcontrolport} || echo unreachable) + configversion=$($BINDIR/plopcontrol.py ${plopcontrolfile} "configversion" || echo unreachable) fi echo "version before reload: $configversion" @@ -23,12 +23,12 @@ getconfigresult=$(${BINDIR}/getconfig.py --localconfig ${localconfig} --dest ${g if [ "${plopcontrolfile}" = "force-compile" -o "$getconfigresult" = "newconfig" ]; then ${BINDIR}/compileconfig.py --localconfig ${localconfig} --config ${globalconfig} if [ "${plopcontrolport}" != "" ]; then - reloadresult=$(echo "reload" | nc 127.0.0.1 ${plopcontrolport} || echo unreachable) + reloadresult=$($BINDIR/plopcontrol.py ${plopcontrolfile} "reload" || echo unreachable) echo $reloadresult if [ "$reloadresult" != "reload completed" ]; then exit 1 fi - configversion=$(echo "configversion" | nc 127.0.0.1 ${plopcontrolport} || echo unreachable) + configversion=$($BINDIR/plopcontrol.py ${plopcontrolfile} "configversion" || echo unreachable) echo "version after reload: $configversion" fi else |