aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine-baselayout/alpine-baselayout.pre-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'main/alpine-baselayout/alpine-baselayout.pre-upgrade')
-rw-r--r--main/alpine-baselayout/alpine-baselayout.pre-upgrade2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/alpine-baselayout/alpine-baselayout.pre-upgrade b/main/alpine-baselayout/alpine-baselayout.pre-upgrade
index bb2695e47c..8a7098f7d1 100644
--- a/main/alpine-baselayout/alpine-baselayout.pre-upgrade
+++ b/main/alpine-baselayout/alpine-baselayout.pre-upgrade
@@ -14,6 +14,6 @@ for i in /etc/modprobe.d/*; do
mv "$i" "$i".conf
done
-if ! grep -q '^shadow:' /etc/group; then
+if [ -e /etc/group ] && ! grep -q '^shadow:' /etc/group; then
addgroup -S -g 42 shadow
fi