summaryrefslogtreecommitdiffstats
path: root/abs/core/zoneminder/zoneminder.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/zoneminder/zoneminder.install')
-rw-r--r--abs/core/zoneminder/zoneminder.install28
1 files changed, 6 insertions, 22 deletions
diff --git a/abs/core/zoneminder/zoneminder.install b/abs/core/zoneminder/zoneminder.install
index c2e1cb8..bf5cd99 100644
--- a/abs/core/zoneminder/zoneminder.install
+++ b/abs/core/zoneminder/zoneminder.install
@@ -60,23 +60,17 @@ post_install() {
fi
#---
usermod -G video http
- COUNT=`grep -c "zm.include" /etc/lighttpd/conf.include`
- if [ $COUNT == 0 ]
- then
- echo "==> Adding zm.include to conf.include"
- echo "include \"/etc/lighttpd/zm.include\"" >> /etc/lighttpd/conf.include
- fi
- echo
- echo "==> Forcing a re-read of lighttpd's configuration file."
- echo ""
- /sbin/sv hup /service/lighttpd
-
install_db
+ gen_light_include.py
+ /sbin/sv hup /service/lighttpd
#---
}
+
post_upgrade() {
post_install
/usr/bin/zmupdate.pl -f >/dev/null
+ gen_light_include.py
+ /sbin/sv hup /service/lighttpd
}
post_remove() {
@@ -85,17 +79,7 @@ post_remove() {
fi
#--
- COUNT=`grep -c "zm.include" /etc/lighttpd/conf.include`
- if [ $COUNT -gt 0 ]
- then
- echo "==> Removing zm.include from conf.include"
- sed -i 's#include \"/etc/lighttpd/zm.include\"##' -i /etc/lighttpd/conf.include
- fi
-
-
- echo
- echo "==> Forcing a re-read of lighttpd's configuration file."
- echo ""
+ gen_light_include.py
/sbin/sv hup /service/lighttpd
#--