]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
privoxy: added user/group creation warning
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Thu, 14 Sep 2006 00:29:48 +0000 (00:29 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Thu, 14 Sep 2006 00:29:48 +0000 (00:29 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@194 370017ae-e619-0410-ac65-c121f96126d4

privoxy/privoxy.SlackBuild

index 72194e9bb7f835e4315711e2b01869c729ec0b81..f4b0f68434c422fbd757099019dffe4043ebef0e 100755 (executable)
@@ -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