diff options
Diffstat (limited to 'abs/core-testing')
-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 |