diff options
author | James Meyer <james.meyer@operamail.com> | 2012-11-03 17:59:45 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-11-03 17:59:45 (GMT) |
commit | 4be23d4482a7aec8820be8fa373bc8de5a0272b5 (patch) | |
tree | 453c78e84078cb6cfa3da1daa4906050aedb68a2 /abs/extra/mythexport/mythexport.install | |
parent | 306d9e4bfa29faaa561d54df14a0533d034f9773 (diff) | |
download | linhes_pkgbuild-4be23d4482a7aec8820be8fa373bc8de5a0272b5.zip linhes_pkgbuild-4be23d4482a7aec8820be8fa373bc8de5a0272b5.tar.gz linhes_pkgbuild-4be23d4482a7aec8820be8fa373bc8de5a0272b5.tar.bz2 |
mythweb, mythexport,zoneminder, web_auth: convert packages to use gen_light_include.conf
refs #864
closes #864
Diffstat (limited to 'abs/extra/mythexport/mythexport.install')
-rw-r--r-- | abs/extra/mythexport/mythexport.install | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/abs/extra/mythexport/mythexport.install b/abs/extra/mythexport/mythexport.install index a599f2d..2718715 100644 --- a/abs/extra/mythexport/mythexport.install +++ b/abs/extra/mythexport/mythexport.install @@ -17,15 +17,7 @@ post_install() { chown mythtv:mythtv /var/run/mythtv chown -R mythtv:mythtv /etc/mythtv - COUNT=`grep -c "include \"/etc/mythexport/mythexport.lighttpd.include\"" /etc/lighttpd/conf.include` - - if [ $COUNT == 0 ] ; then - echo "==> Adding mythexport.lighttpd.include to conf.include" - echo "include \"/etc/mythexport/mythexport.lighttpd.include\"" >> \ - /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 @@ -45,15 +37,7 @@ post_install() { } post_upgrade() { - - COUNT=`grep -c "include \"/etc/mythexport/mythexport.lighttpd.include\"" /etc/lighttpd/conf.include` - - if [ $COUNT == 0 ] ; then - echo "==> Adding mythexport.lighttpd.include to conf.include" - echo "include \"/etc/mythexport/mythexport.lighttpd.include\"" >> \ - /etc/lighttpd/conf.include - fi - + gen_light_include.py echo "" echo "==> Forcing a re-read of lighttpd's configuration file." echo "" @@ -68,15 +52,7 @@ pre_remove() { } post_remove() { - - COUNT=`grep -c "include \"/etc/mythexport/mythexport.lighttpd.include\"" /etc/lighttpd/conf.include` - - if [ $COUNT -gt 0 ] ; then - echo "==> Removing mythexport.lighttpd.include from conf.include" - sed -e 's#include \"/etc/mythexport/mythexport.lighttpd.include\"##' -i \ - /etc/lighttpd/conf.include - fi - + gen_light_include.py echo "" echo "==> Forcing re-read of lighttpd's configuration file." echo "" |