Commit 131105ff authored by Natanael Copa's avatar Natanael Copa

main/alpine-baselayout: fix pre-upgrade script

we also use realtive symlink to suppose nested rootfs
parent 484c933a
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-baselayout
pkgver=3.0.5
pkgrel=1
pkgrel=2
pkgdesc="Alpine base dir structure and init scripts"
url="http://git.alpinelinux.org/cgit/aports/tree/main/alpine-baselayout"
arch="all"
......
......@@ -16,9 +16,9 @@ done
# migrate /var/run directory to /run
if [ -d /var/run ]; then
cp -a /var/run/* 2>/dev/null
cp -a /var/run/* /run 2>/dev/null
rm -rf /var/run
ln -s /run /var/run
ln -s ../run /var/run
fi
addgroup -S -g 42 shadow 2>/dev/null
......
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