summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/myth2ipod/myth2ipod.install
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-08-09 04:03:36 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-08-09 04:03:36 (GMT)
commit5e570b4bd6c664de0745147c837d03224ad192ea (patch)
tree2e29050e28c6f4e377cdc4782b8ba3fce3671bc0 /abs/extra-testing/myth2ipod/myth2ipod.install
parent26fb5caadf1e867534d21f3f43bef498fd7fd4ab (diff)
parenta975be5c625c282814c3095ee4d4f23442fb5618 (diff)
downloadlinhes_pkgbuild-5e570b4bd6c664de0745147c837d03224ad192ea.zip
linhes_pkgbuild-5e570b4bd6c664de0745147c837d03224ad192ea.tar.gz
linhes_pkgbuild-5e570b4bd6c664de0745147c837d03224ad192ea.tar.bz2
Merge branch 'HEAD' of ssh://cesman@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/extra-testing/myth2ipod/myth2ipod.install')
-rwxr-xr-xabs/extra-testing/myth2ipod/myth2ipod.install13
1 files changed, 7 insertions, 6 deletions
diff --git a/abs/extra-testing/myth2ipod/myth2ipod.install b/abs/extra-testing/myth2ipod/myth2ipod.install
index 4a7e046..9b9239a 100755
--- a/abs/extra-testing/myth2ipod/myth2ipod.install
+++ b/abs/extra-testing/myth2ipod/myth2ipod.install
@@ -1,6 +1,7 @@
pre_install() {
- echo ""
+ mkdir -p /myth/ipodfeed
+ chown mythtv:http /myth/ipodfeed
}
pre_upgrade() {
@@ -13,14 +14,11 @@ pre_remove() {
post_install() {
. /etc/systemconfig
- mkdir /myth/ipodfeed
- chown mythtv:users /myth/ipodfeed
ln -s /myth/ipodfeed /data/srv/httpd/htdocs/ipodfeed
+ ln -s /myth/ipodfeed/m2iweb.php /myth/ipodfeed/index.php
cp /usr/bin/myth2ipod /tmp
sed -e "s/REPLACEME/$hostname/g" /tmp/myth2ipod > /usr/bin/myth2ipod
chown -R mythtv:http /myth/ipodfeed
-
-
}
post_upgrade() {
@@ -28,7 +26,10 @@ post_upgrade() {
}
post_remove() {
- rm -fr /data/srv/httpd/htdocs/ipodfeed
+ rm -fr /data/srv/httpd/htdocs/ipodfeed
+ rm -rf /myth/ipodfeed/m2iweb.php
+ rm -rf /myth/ipodfeed/index.php
+ # don't delete content that the user may still want, so leave /myth/ipodfeed
}
op=$1