]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
sympa update
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Thu, 31 Aug 2006 20:57:49 +0000 (20:57 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Thu, 31 Aug 2006 20:57:49 +0000 (20:57 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@129 370017ae-e619-0410-ac65-c121f96126d4

sympa/sympa.SlackBuild

index 6e5df2d5c39be8d8ac23f2b58a3dc290512ddb34..b0248e4d04d348bd287349d2b89d4e9f32a2b67d 100755 (executable)
@@ -47,6 +47,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