diff options
author | James Meyer <james.meyer@operamail.com> | 2012-04-24 21:42:36 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-04-24 21:42:36 (GMT) |
commit | c58f2ef5aae732c9b25d0709b436e7420d466ddd (patch) | |
tree | a33829aec5f3cc3266ad5cb424cc9370d98de4db /abs | |
parent | daa699b5707fa46a2544318fd2844d5a8abfb241 (diff) | |
download | linhes_pkgbuild-c58f2ef5aae732c9b25d0709b436e7420d466ddd.zip linhes_pkgbuild-c58f2ef5aae732c9b25d0709b436e7420d466ddd.tar.gz linhes_pkgbuild-c58f2ef5aae732c9b25d0709b436e7420d466ddd.tar.bz2 |
runit-scripts:
- changed mythbackend logging to use syslog
- as pre-upgrade run a chmod 755 on /etc/sv. This should get rid of the permissions difference error message.
Note this is a one-time run
Diffstat (limited to 'abs')
-rwxr-xr-x | abs/core/runit-scripts/PKGBUILD | 3 | ||||
-rw-r--r-- | abs/core/runit-scripts/__changelog | 1 | ||||
-rwxr-xr-x | abs/core/runit-scripts/runit.install | 8 | ||||
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/mythbackend/run | 2 |
4 files changed, 12 insertions, 2 deletions
diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD index c625da4..fd205aa 100755 --- a/abs/core/runit-scripts/PKGBUILD +++ b/abs/core/runit-scripts/PKGBUILD @@ -1,6 +1,6 @@ pkgname=runit-scripts pkgver=2.1.1 -pkgrel=60 +pkgrel=61 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" @@ -27,5 +27,6 @@ build() { install -m0755 reboot-runit halt-runit logger $startdir/pkg/sbin rsync -a --exclude=.svn services/* $startdir/pkg/etc/sv chmod -R 755 $startdir/pkg/etc/sv + chown -R root:root $startdir/pkg/etc/sv } md5sums=('c79246677d5ffe687bcf6df1b9c2abc2') diff --git a/abs/core/runit-scripts/__changelog b/abs/core/runit-scripts/__changelog new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/abs/core/runit-scripts/__changelog @@ -0,0 +1 @@ + diff --git a/abs/core/runit-scripts/runit.install b/abs/core/runit-scripts/runit.install index 213d10f..d77c9aa 100755 --- a/abs/core/runit-scripts/runit.install +++ b/abs/core/runit-scripts/runit.install @@ -57,6 +57,14 @@ post_upgrade(){ } +pre_upgrade(){ + if [ $(vercmp $2 2.1.1-60 ) -lt 0 ] + then + echo "Updating file permissions for /etc/sv to 755" + chmod -R 755 /etc/sv + fi +} + op=$1 shift diff --git a/abs/core/runit-scripts/runitscripts/services/mythbackend/run b/abs/core/runit-scripts/runitscripts/services/mythbackend/run index 96d21ee..4ff0e9f 100755 --- a/abs/core/runit-scripts/runitscripts/services/mythbackend/run +++ b/abs/core/runit-scripts/runitscripts/services/mythbackend/run @@ -40,5 +40,5 @@ fi # sleep 10 # # else - exec su mythtv -c "/usr/bin/mythbackend -q --logpath /var/log/mythtv/" + exec su mythtv -c "/usr/bin/mythbackend -q --syslog local6" # fi |