summaryrefslogtreecommitdiffstats
path: root/abs/extra/mythexport/mythexport.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-12-21 21:08:04 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-12-21 21:08:04 (GMT)
commitcc93e7bf2a105982eeaa5d268e92796805483f11 (patch)
treefc6d976c1055756a76d8b79e8ef70f7911708ff0 /abs/extra/mythexport/mythexport.install
parent14166c817b594c43dddb0883e66f96cb32013643 (diff)
parent616f8b211ed7e269a46930e7bfe04a69b369aed0 (diff)
downloadlinhes_pkgbuild-cc93e7bf2a105982eeaa5d268e92796805483f11.zip
linhes_pkgbuild-cc93e7bf2a105982eeaa5d268e92796805483f11.tar.gz
linhes_pkgbuild-cc93e7bf2a105982eeaa5d268e92796805483f11.tar.bz2
Merge branch 'testing' of ssh://jams@linhes.org/mount/repository/linhes_pkgbuild into testing
Diffstat (limited to 'abs/extra/mythexport/mythexport.install')
-rw-r--r--abs/extra/mythexport/mythexport.install25
1 files changed, 22 insertions, 3 deletions
diff --git a/abs/extra/mythexport/mythexport.install b/abs/extra/mythexport/mythexport.install
index a6a2085..9bd1213 100644
--- a/abs/extra/mythexport/mythexport.install
+++ b/abs/extra/mythexport/mythexport.install
@@ -1,8 +1,22 @@
# arg 1: the new package version
post_install() {
+ if [ ! -d /myth/mythexport ];then
+ mkdir /myth/mythexport
+ fi
+ if [ ! -d /var/run/mythtv ];then
+ mkdir /var/run/mythtv
+ fi
+ if [ ! -d /srv/http/.mythtv ];then
+ mkdir /srv/http/.mythtv
+ fi
+ chown -R mythtv:mythtv /myth/mythexport
+
mysql -u root mythconverg < /usr/share/mythtv/mythexport.sql
ln -s /usr/share/mythtv/mythexport /data/srv/httpd/htdocs/
- ln -s /myth/archive /usr/share/mythtv/mythexport/video
+ ln -s /myth/mythexport /usr/share/mythtv/mythexport/video
+ ln -s /home/mythtv/.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`
@@ -18,9 +32,11 @@ post_install() {
/sbin/sv hup /service/lighttpd
echo ""
- echo "==> Add the mythexport service to start the mythexport daemon"
- echo "==> $ sudo add_service.sh mythexport"
+ echo "==> Adding the mythexport service to start the mythexport daemon"
+ add_service.sh mythexport
echo ""
+ echo "==> Starting MythExport..."
+ /sbin/sv start mythexport
echo ""
echo "==> For move information on setup and configuration:"
@@ -66,6 +82,9 @@ post_remove() {
echo "==> Forcing re-read of lighttpd's configuration file."
echo ""
/sbin/sv hup /service/lighttpd
+ rm -fr /data/srv/httpd/htdocs/mythexport
+ rm -fr /usr/share/mythtv/mythexport/video
+ rm -fr /srv/http/.mythtv/config.xml
}