Commit e5ba0e91 authored by Natanael Copa's avatar Natanael Copa

main/alpine-baselayout: fix pre-upgrade to handle /var/run

fixes #8029
parent 5669a06d
......@@ -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"
......
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment