summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/mythappletrailers/mythappletrailers.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra-testing/mythappletrailers/mythappletrailers.install')
-rw-r--r--abs/extra-testing/mythappletrailers/mythappletrailers.install8
1 files changed, 7 insertions, 1 deletions
diff --git a/abs/extra-testing/mythappletrailers/mythappletrailers.install b/abs/extra-testing/mythappletrailers/mythappletrailers.install
index 22dada0..133390c 100644
--- a/abs/extra-testing/mythappletrailers/mythappletrailers.install
+++ b/abs/extra-testing/mythappletrailers/mythappletrailers.install
@@ -1,15 +1,21 @@
# arg 1: the new package version
post_install() {
+ ln -s /home/mythtv/appletrailer.xml /usr/share/mythtv/appletrailer.xml
}
-
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
+ if [ -e /usr/share/mythtv/appletrailer.xml ]
+ then
+ exit
+ else
ln -s /home/mythtv/appletrailer.xml /usr/share/mythtv/appletrailer.xml
+ fi
}
# arg 1: the old package version
post_remove() {
+ rm -fr /usr/share/mythtv/appletrailer.xml
}
op=$1