diff options
Diffstat (limited to 'abs/core/supplemental-web/supplemental-web.install')
-rw-r--r-- | abs/core/supplemental-web/supplemental-web.install | 25 |
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 } |