diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-05 09:48:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-05 09:48:41 +0000 |
commit | ab05e4a8cd09cac121bf397d2e894dae123e9236 (patch) | |
tree | dceb9cdbccb9818c9e37dadc257ed666312f1296 /core | |
parent | da3316a3321595daefbbd9d399a509ff349af1f8 (diff) | |
download | aports-ab05e4a8cd09cac121bf397d2e894dae123e9236.tar.bz2 aports-ab05e4a8cd09cac121bf397d2e894dae123e9236.tar.xz |
core/openrc: add post-upgrade script that moves the state dir to new location
state dir has moved to /libexec/rc/init.d. By move the state in
post-upgrade we dont need to reboot.
Diffstat (limited to 'core')
-rw-r--r-- | core/openrc/APKBUILD | 7 | ||||
-rw-r--r-- | core/openrc/openrc.post-upgrade | 9 |
2 files changed, 13 insertions, 3 deletions
diff --git a/core/openrc/APKBUILD b/core/openrc/APKBUILD index ae21569ab..f7a56e285 100644 --- a/core/openrc/APKBUILD +++ b/core/openrc/APKBUILD @@ -1,13 +1,13 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=openrc pkgver=0.5.0 -pkgrel=0 +pkgrel=1 pkgdesc="OpenRC manages the services, startup and shutdown of a host" url="http://roy.marples.name/openrc" license='BSD-2' depends="" subpackages="$pkgname-doc $pkgname-dev" -install="$pkgname.post-install" +install="$pkgname.post-install $pkgname.post-upgrade" source="http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2 openrc-0.4.3-mkmntdirs.patch hostname.initd @@ -46,4 +46,5 @@ c32e15b0858eef708497e7ee6355a055 hostname.initd 33ca3e558c42cdd17adccbc7807298f7 keymaps.initd 5608e6e3d836ad01b9714e5b41d223cb modules.initd 747168eee535e845179eaef5a3fcb334 networking.initd -6e834194b246563fc5acd77e91e038c4 openrc.post-install" +6e834194b246563fc5acd77e91e038c4 openrc.post-install +393ff61bc0bf2c07f9af81795554c584 openrc.post-upgrade" diff --git a/core/openrc/openrc.post-upgrade b/core/openrc/openrc.post-upgrade new file mode 100644 index 000000000..b09f2f240 --- /dev/null +++ b/core/openrc/openrc.post-upgrade @@ -0,0 +1,9 @@ +#!/bin/sh + +# in 0.5.x the state dir moved from /lib/rc/init.d to /libexec/rc/init.d + +[ -d /lib/rc/init.d ] || exit 0 + +mv /lib/rc/init.d/* /libexec/rc/init.d/ +rmdir /lib/rc/init.d +exit 0 |