diff options
author | Bob Igo <bob@stormlogic.com> | 2009-08-07 17:12:26 (GMT) |
---|---|---|
committer | Bob Igo <bob@stormlogic.com> | 2009-08-07 17:12:26 (GMT) |
commit | b1d081edd3cbb7d29f18673ad01ecc427b43e841 (patch) | |
tree | ac8c4c9b2eaa8b3e6d5c6c040f76d76d1f8ff746 /abs/extra-testing/myt2xvid3/myt2xvid3.install | |
parent | 4ac045673065b3f2d00304a4c89b893d12ae86d5 (diff) | |
download | linhes_pkgbuild-b1d081edd3cbb7d29f18673ad01ecc427b43e841.zip linhes_pkgbuild-b1d081edd3cbb7d29f18673ad01ecc427b43e841.tar.gz linhes_pkgbuild-b1d081edd3cbb7d29f18673ad01ecc427b43e841.tar.bz2 |
iterating toward working myth2ipod and myt2xvid3 packages
Diffstat (limited to 'abs/extra-testing/myt2xvid3/myt2xvid3.install')
-rwxr-xr-x | abs/extra-testing/myt2xvid3/myt2xvid3.install | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/abs/extra-testing/myt2xvid3/myt2xvid3.install b/abs/extra-testing/myt2xvid3/myt2xvid3.install index f363fa2..19d050d 100755 --- a/abs/extra-testing/myt2xvid3/myt2xvid3.install +++ b/abs/extra-testing/myt2xvid3/myt2xvid3.install @@ -1,6 +1,7 @@ pre_install() { - echo "" + mkdir -p /myth/video/archive + chown mythtv:http /myth/video/archive } pre_upgrade() { @@ -13,9 +14,8 @@ pre_remove() { post_install() { . /etc/systemconfig - mkdir /myth/video/archive - chown mythtv:users /myth/video/archive ln -s /myth/video/archive /data/srv/httpd/htdocs/archive + ln -s /myth/video/archive/archive.php /myth/video/archive/index.php mv /usr/bin/myt2xvid3 /tmp sed -e "s/REPLACEME/$HOSTNAME/g" /tmp/myt2xvid3 > /usr/bin/myt2xvid3 chown -R mythtv:http /myth/video/archive @@ -26,7 +26,10 @@ post_upgrade() { } post_remove() { - rm -fr /data/srv/http/htdocs/archive + rm -fr /data/srv/http/htdocs/archive + rm -rf /myth/video/archive/index.php + rm -rf /myth/video/archive/archive.php + # don't delete content that the user may still want, so leave /myth/video/archive } op=$1 |