diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-01-25 15:20:08 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-01-25 15:20:08 -0500 |
commit | 96920d07adaaa66c8f6ab4284f63fb4e33f2220c (patch) | |
tree | 56af9880cbaacd15f82aeffcc2a2e686d9bf41c6 | |
parent | c4e228f3335ec0a579e91c76394d6c5f6db21d15 (diff) | |
download | pfsense-96920d07adaaa66c8f6ab4284f63fb4e33f2220c.zip pfsense-96920d07adaaa66c8f6ab4284f63fb4e33f2220c.tar.gz |
Restart lighty captive portal after sync
-rw-r--r-- | etc/phpshellsessions/gitsync | 2 |
1 files changed, 2 insertions, 0 deletions
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"; |