diff options
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 "" |