summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web/supplemental-web.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-02 17:37:35 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-02 17:37:35 (GMT)
commitff171b9eb40875560f75a0e4cf5d26e3483df773 (patch)
tree961acadffe15c78e54b3a45688b380567f5e6702 /abs/core/supplemental-web/supplemental-web.install
parent6d9dd628c02db0885228005684bd81c1849dd0dd (diff)
downloadlinhes_pkgbuild-ff171b9eb40875560f75a0e4cf5d26e3483df773.zip
linhes_pkgbuild-ff171b9eb40875560f75a0e4cf5d26e3483df773.tar.gz
linhes_pkgbuild-ff171b9eb40875560f75a0e4cf5d26e3483df773.tar.bz2
supplemental-web: convert install file to use gen_light_include.py
Diffstat (limited to 'abs/core/supplemental-web/supplemental-web.install')
-rw-r--r--abs/core/supplemental-web/supplemental-web.install25
1 files changed, 4 insertions, 21 deletions
diff --git a/abs/core/supplemental-web/supplemental-web.install b/abs/core/supplemental-web/supplemental-web.install
index eec33fd..21946b2 100644
--- a/abs/core/supplemental-web/supplemental-web.install
+++ b/abs/core/supplemental-web/supplemental-web.install
@@ -9,14 +9,7 @@ pre_install() {
# arg 1: the new package version
post_install() {
setfacl -m u:http:rx /home/mythtv/
-
- COUNT=`grep -c "lighttpd-supplement.conf" /etc/lighttpd/conf.include`
- if [ $COUNT == 0 ]
- then
- echo "==> Adding lighttpd-suppliement.conf to conf.include"
- echo "include \"/usr/MythVantage/etc/lighttpd-supplement.conf\"" >> /etc/lighttpd/conf.include
- fi
- echo
+ gen_light_include.py
echo "==> Forcing a re-read of lighttpd's configuration file."
echo ""
/sbin/sv hup /service/lighttpd
@@ -44,21 +37,11 @@ pre_remove() {
# arg 1: the old package version
post_remove() {
- /bin/true
- COUNT=`grep -c "lighttpd-supplement.conf" /etc/lighttpd/conf.include`
- if [ $COUNT -gt 0 ]
- then
- echo "==> Removing lighttpd-supplement.conf from conf.include"
- sed -i 's#include \"/usr/MythVantage/etc/lighttpd-supplement.conf\"##' -i /etc/lighttpd/conf.include
- fi
-
-
- echo
+ gen_light_include.py
+ echo
echo "==> Forcing a re-read of lighttpd's configuration file."
echo ""
- /sbin/sv hup /service/lighttpd
-
-
+ /sbin/sv hup /service/lighttpd
/usr/LH/bin/switch_web.sh local
}