diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-10-23 11:28:31 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-10-23 11:30:02 +0000 |
commit | e5ba0e9172a83480b7c4e612b4aebd334b8ecfb9 (patch) | |
tree | 3bb451b07193d93925b5df1d59a3bcfbc66a7b3d /main | |
parent | 5669a06decf0c081ddc727b3dc4fe4ff07d557a0 (diff) | |
download | aports-e5ba0e9172a83480b7c4e612b4aebd334b8ecfb9.tar.bz2 aports-e5ba0e9172a83480b7c4e612b4aebd334b8ecfb9.tar.xz |
main/alpine-baselayout: fix pre-upgrade to handle /var/run
fixes #8029
Diffstat (limited to 'main')
-rw-r--r-- | main/alpine-baselayout/APKBUILD | 2 | ||||
-rw-r--r-- | main/alpine-baselayout/alpine-baselayout.pre-upgrade | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/main/alpine-baselayout/APKBUILD b/main/alpine-baselayout/APKBUILD index 9d2a5084fd..985e231d4c 100644 --- a/main/alpine-baselayout/APKBUILD +++ b/main/alpine-baselayout/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=alpine-baselayout pkgver=3.0.5 -pkgrel=0 +pkgrel=1 pkgdesc="Alpine base dir structure and init scripts" url="http://git.alpinelinux.org/cgit/aports/tree/main/alpine-baselayout" arch="all" diff --git a/main/alpine-baselayout/alpine-baselayout.pre-upgrade b/main/alpine-baselayout/alpine-baselayout.pre-upgrade index f7c8db83c4..e2dd88c46d 100644 --- a/main/alpine-baselayout/alpine-baselayout.pre-upgrade +++ b/main/alpine-baselayout/alpine-baselayout.pre-upgrade @@ -14,6 +14,13 @@ for i in /etc/modprobe.d/*; do mv "$i" "$i".conf done +# migrate /var/run directory to /run +if [ -d /var/run ]; then + cp -a /var/run/* 2>/dev/null + rm -rf /var/run + ln -s /run /var/run +fi + addgroup -S -g 42 shadow 2>/dev/null exit 0 |