diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-11-19 07:11:13 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-11-19 07:13:00 +0000 |
commit | 1b1dbe80072846cd2109741b9475af49180265a1 (patch) | |
tree | fe84ef58b2b693227bbdbf925cbc757493bcbc09 /main/alpine-baselayout/alpine-baselayout.pre-upgrade | |
parent | d2584e6d37ccbf95ed304a71482e403883e5d0d3 (diff) | |
download | aports-1b1dbe80072846cd2109741b9475af49180265a1.tar.bz2 aports-1b1dbe80072846cd2109741b9475af49180265a1.tar.xz |
main/alpine-baselayout: hide error message for missing /etc/group
Diffstat (limited to 'main/alpine-baselayout/alpine-baselayout.pre-upgrade')
-rw-r--r-- | main/alpine-baselayout/alpine-baselayout.pre-upgrade | 2 |
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 bb2695e47..8a7098f7d 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 |