summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/mediaserv/mediaserv.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra-testing/mediaserv/mediaserv.install')
-rw-r--r--abs/extra-testing/mediaserv/mediaserv.install4
1 files changed, 4 insertions, 0 deletions
diff --git a/abs/extra-testing/mediaserv/mediaserv.install b/abs/extra-testing/mediaserv/mediaserv.install
index 6fe6f08..7a26077 100644
--- a/abs/extra-testing/mediaserv/mediaserv.install
+++ b/abs/extra-testing/mediaserv/mediaserv.install
@@ -4,6 +4,8 @@ post_install() {
ln -s /myth/pretty /myth/mediaserv/media/tv
ln -s /myth/video /myth/mediaserv/media/video
chown -R mythtv.mythtv /myth/mediaserv
+ add_service.sh mediaserv
+ sv start mediaserv
}
# arg 1: the new package version
# arg 2: the old package version
@@ -13,6 +15,8 @@ post_upgrade() {
# arg 1: the old package version
post_remove() {
+ sv stop mediaserv
+ remove_service.sh mediaserv
rm -fr /home/mythtv/.mediaserv
rm -fr /myth/mediaserv
}