diff options
Diffstat (limited to 'abs/extra/mythexport/mythexport.install')
| -rw-r--r-- | abs/extra/mythexport/mythexport.install | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/abs/extra/mythexport/mythexport.install b/abs/extra/mythexport/mythexport.install index d2c1ae0..2718715 100644 --- a/abs/extra/mythexport/mythexport.install +++ b/abs/extra/mythexport/mythexport.install @@ -13,19 +13,11 @@ post_install() { mysql -u root mythconverg < /usr/share/mythtv/mythexport.sql ln -s /usr/share/mythtv/mythexport /data/srv/httpd/htdocs ln -s /myth/mythexport /usr/share/mythtv/mythexport/video - ln -s /home/mythtv/.mythtv/config.xml /srv/http/.mythtv + ln -s $MYTHHOME/.mythtv/config.xml /srv/http/.mythtv 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 "" |
