From ca79f6655717db2bb37b5a6dee819b3e3c76d841 Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 14 Sep 2006 00:29:48 +0000 Subject: privoxy: added user/group creation warning git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@194 370017ae-e619-0410-ac65-c121f96126d4 --- privoxy/privoxy.SlackBuild | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'privoxy/privoxy.SlackBuild') diff --git a/privoxy/privoxy.SlackBuild b/privoxy/privoxy.SlackBuild index 72194e9b..f4b0f684 100755 --- a/privoxy/privoxy.SlackBuild +++ b/privoxy/privoxy.SlackBuild @@ -23,6 +23,12 @@ SRC_DIR=${SRC:=$CWD} TMP=${TMP:=/tmp} REPOS=${REPOS:=$TMP} +if ! grep -qe "^$PACKAGE:" /etc/passwd || ! grep -qe "^$PACKAGE:" /etc/group; then + echo "WARNING: user and/or group $PACKAGE does not exist" + echo "Create it manually with \"groupadd $PACKAGE ; useradd $PACKAGE -g $PACKAGE\" and run this script again." + exit 1 +fi + if [ "$ARCH" == "x86_64" ]; then LIBDIR=/usr/lib64 else -- cgit v1.2.3