summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/mediaserv/mediaserv.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-03-21 17:30:37 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-03-21 17:30:37 (GMT)
commit8ca96fb6039c261bb4fddfadc6a1fea9e003191e (patch)
treee2aa1fdf5bc36a21342b73040b3827edbf220ffc /abs/extra-testing/mediaserv/mediaserv.install
parent2cfbb487a523a5b29d8caf5d422adaacfa98701d (diff)
downloadlinhes_pkgbuild-8ca96fb6039c261bb4fddfadc6a1fea9e003191e.zip
linhes_pkgbuild-8ca96fb6039c261bb4fddfadc6a1fea9e003191e.tar.gz
linhes_pkgbuild-8ca96fb6039c261bb4fddfadc6a1fea9e003191e.tar.bz2
mediasrv: changed install file to not create symlinks if the dest is already present
modifed run file so that it's not as chatty about "which" ref 590
Diffstat (limited to 'abs/extra-testing/mediaserv/mediaserv.install')
-rw-r--r--abs/extra-testing/mediaserv/mediaserv.install18
1 files changed, 15 insertions, 3 deletions
diff --git a/abs/extra-testing/mediaserv/mediaserv.install b/abs/extra-testing/mediaserv/mediaserv.install
index 7a26077..4a9de8e 100644
--- a/abs/extra-testing/mediaserv/mediaserv.install
+++ b/abs/extra-testing/mediaserv/mediaserv.install
@@ -1,8 +1,20 @@
# arg 1: the new package version
+
+
post_install() {
- ln -s /myth/mediaserv /home/mythtv/.mediaserv
- ln -s /myth/pretty /myth/mediaserv/media/tv
- ln -s /myth/video /myth/mediaserv/media/video
+ if [ ! -e /home/mythtv/.mediaserv ]
+ then
+ ln -s /myth/mediaserv /home/mythtv/.mediaserv
+ fi
+
+ if [ ! -e /myth/mediaserv/media/tv ]
+ then
+ ln -s /myth/pretty /myth/mediaserv/media/tv
+ fi
+ if [ ! -e /myth/mediaserv/media/video ]
+ then
+ ln -s /myth/video /myth/mediaserv/media/video
+ fi
chown -R mythtv.mythtv /myth/mediaserv
add_service.sh mediaserv
sv start mediaserv