Commit 1b1dbe80 authored by Natanael Copa's avatar Natanael Copa

main/alpine-baselayout: hide error message for missing /etc/group

parent d2584e6d
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-baselayout
pkgver=2.3.1
pkgrel=4
pkgrel=5
pkgdesc="Alpine base dir structure and init scripts"
url="http://git.alpinelinux.org/cgit/aports/tree/main/alpine-baselayout"
arch="all"
......
#!/bin/sh
if [ -e /etc/shadow ] && grep -q '^shadow:' /etc/group; then
if [ -e /etc/group ] && ! grep -q '^shadow:' /etc/group; then
addgroup -S -g 42 shadow
fi
......@@ -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
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