summaryrefslogtreecommitdiffstats
path: root/main/alpine-baselayout/alpine-baselayout.pre-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-11-15 13:00:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-11-15 13:02:19 +0000
commitb973cd7a03e4653bfc031ad805a2594cd383b160 (patch)
tree7ecca451220ca5c2e5bc7c67b602469db86af0b7 /main/alpine-baselayout/alpine-baselayout.pre-install
parent0771864542a0c8c1632f594c01def2b7e9c6fd5d (diff)
downloadaports-b973cd7a03e4653bfc031ad805a2594cd383b160.tar.bz2
aports-b973cd7a03e4653bfc031ad805a2594cd383b160.tar.xz
main/alpine-baselayout: create group shadow for read access to /etc/shadow
radius needs it
Diffstat (limited to 'main/alpine-baselayout/alpine-baselayout.pre-install')
-rw-r--r--main/alpine-baselayout/alpine-baselayout.pre-install6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/alpine-baselayout/alpine-baselayout.pre-install b/main/alpine-baselayout/alpine-baselayout.pre-install
new file mode 100644
index 000000000..25783b323
--- /dev/null
+++ b/main/alpine-baselayout/alpine-baselayout.pre-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if [ -e /etc/shadow ] && grep -q '^shadow:' /etc/group; then
+ addgroup -S -g 42 shadow
+fi
+