From e713a0705bf5b4869e0b3ee0f0ac3724740a9d86 Mon Sep 17 00:00:00 2001 From: A Holt Date: Wed, 3 Oct 2018 14:42:17 -0400 Subject: [PATCH] Update iiab-uncatch --- roles/network/templates/captive-portal/iiab-uncatch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/network/templates/captive-portal/iiab-uncatch b/roles/network/templates/captive-portal/iiab-uncatch index 8b885c332..bfea48d55 100755 --- a/roles/network/templates/captive-portal/iiab-uncatch +++ b/roles/network/templates/captive-portal/iiab-uncatch @@ -4,10 +4,10 @@ kill $(cat /opt/iiab/captive-portal/pid) # during testing, I start capture by hand -- recorded pid may be stale pid=$(ps aux | grep "capture-wsgi.py -d" | grep -v grep | awk '{print $2}') -if [ -n "$pid" ];then - kill $pid +if [ -n "$pid" ]; then + kill $pid fi awk '{print("address=/" $1 "/172.18.96.1")}' /opt/iiab/captive-portal/checkurls > /etc/dnsmasq.d/capture awk '{print("ServerAlias ",$1)}' /opt/iiab/captive-portal/checkurls > /etc/apache2/capture -systemctl start captive-portal +systemctl start py-captive-portal systemctl start apache2