From 96920d07adaaa66c8f6ab4284f63fb4e33f2220c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 25 Jan 2011 15:20:08 -0500 Subject: Restart lighty captive portal after sync --- etc/phpshellsessions/gitsync | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc') diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync index 9fa7079..4b865c5 100644 --- a/etc/phpshellsessions/gitsync +++ b/etc/phpshellsessions/gitsync @@ -313,6 +313,8 @@ function post_cvssync_commands() { fwrite($fd, "sleep 5\n"); fwrite($fd, "killall php\n"); fwrite($fd, "/usr/local/sbin/pfSctl -c 'service restart webgui'\n"); + if(file_exists("/var/etc/lighty-CaptivePortal.conf")) + fwrite($fd, "/usr/local/sbin/lighttpd -f /var/etc/lighty-CaptivePortal.conf\n"); fclose($fd); mwexec_bg("sh /tmp/restart_lighty"); echo "\n"; -- cgit v1.1