diff options
author | Nathan Harris <nharris@eoimaging.com> | 2009-02-19 16:16:44 (GMT) |
---|---|---|
committer | Nathan Harris <nharris@eoimaging.com> | 2009-02-19 16:16:44 (GMT) |
commit | f163da899e5d0e273b5354efc959a24cead50829 (patch) | |
tree | 523abbbb99d9af178ea54feac74b4d1124f6d21f /abs | |
parent | 097ebc5aece43798e785d620d3ad56f568501a2b (diff) | |
download | linhes_pkgbuild-f163da899e5d0e273b5354efc959a24cead50829.zip linhes_pkgbuild-f163da899e5d0e273b5354efc959a24cead50829.tar.gz linhes_pkgbuild-f163da899e5d0e273b5354efc959a24cead50829.tar.bz2 |
new install file
Diffstat (limited to 'abs')
-rwxr-xr-x | abs/core-testing/mythtv/trunk/mythtv/mythtv.install | 55 |
1 files changed, 15 insertions, 40 deletions
diff --git a/abs/core-testing/mythtv/trunk/mythtv/mythtv.install b/abs/core-testing/mythtv/trunk/mythtv/mythtv.install index 513852a..87507a5 100755 --- a/abs/core-testing/mythtv/trunk/mythtv/mythtv.install +++ b/abs/core-testing/mythtv/trunk/mythtv/mythtv.install @@ -1,53 +1,28 @@ - # arg 1: the new package version -pre_install () { - echo "backing up the database" - dbver=`pacman -Q mythtv-svn | awk ' { print $2 } '` - if [ ! -e /data/databases_backup ] - then - mkdir -p /data/database_backup - fi - mysqldump -u mythtv -pmythtv mythconverg -c > /data/database_backup/${dbver}.dump.sql -} - post_install() { - mkdir -p /data/home - /usr/sbin/useradd -G users,video,audio,optical -m -d /data/home/mythtv mythtv - /usr/sbin/usermod -G users,video,audio,optical mythtv -# mkdir /var/log/mythtv -# chown -R mythtv:users /var/log/mythtv - dbver=`pacman -Q mythtv-svn | awk ' { print $2 } '` - if [ ! -e /data/database_backup ] - then - mkdir -p /data/database_backup - fi - chown mythtv:nobody /data/database_backup - chmod g+s /data/database_backup - - mysqldump -u mythtv -pmythtv mythconverg -c > /data/database_backup/${dbver}.dump.sql - - -} -pre_upgrade () { - pre_install + if [ ! -d /var/log/mythtv ] + then + mkdir -p /var/log/mythv + chown -R mythtv /var/log/mythtv + echo "---" > /var/log/mythtv/mythbackend.log + chown mythtv /var/log/mythtv/mythbackend.log + + fi } -# arg 1: the new package version -# arg 2: the old package version post_upgrade() { - post_install - - /bin/true + if [ ! -d /var/log/mythtv ] + then + mkdir -p /var/log/mythv + chown -R mythtv /var/log/mythtv + fi } -# arg 1: the old package version -pre_remove() { - /bin/true -} # arg 1: the old package version post_remove() { -/bint/true + /bin/true + } op=$1 |