diff options
author | Michael Hanson <hansonorders@verison.net> | 2010-03-22 19:37:16 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verison.net> | 2010-03-22 19:37:16 (GMT) |
commit | 21383e4ca51bc151601a51e6d75885959deb89e1 (patch) | |
tree | f9c1e3739098b700c0e0421c069ae926cc1b8cc2 /abs/extra-testing/mediaserv/mediaserv.install | |
parent | dbff62a9a2550bd0bed77860fa4164d74c90dfb3 (diff) | |
parent | e51cf415764a2c267f373965c48eec082ad59d81 (diff) | |
download | linhes_pkgbuild-21383e4ca51bc151601a51e6d75885959deb89e1.zip linhes_pkgbuild-21383e4ca51bc151601a51e6d75885959deb89e1.tar.gz linhes_pkgbuild-21383e4ca51bc151601a51e6d75885959deb89e1.tar.bz2 |
Merge branch 'master' of mihanson@knoppmyth.net:LinHES-PKGBUILD
Diffstat (limited to 'abs/extra-testing/mediaserv/mediaserv.install')
-rw-r--r-- | abs/extra-testing/mediaserv/mediaserv.install | 18 |
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 |