From 9a99423fdcffd976fd53da389ac1913b82d71339 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 21 Mar 2017 04:32:36 -0400 Subject: network/openfire: Fix shebang, fix user/group detection. Signed-off-by: B. Watson Signed-off-by: David Spencer --- network/openfire/openfire.SlackBuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/openfire/openfire.SlackBuild b/network/openfire/openfire.SlackBuild index 2cad7af6d2..a7724796d0 100644 --- a/network/openfire/openfire.SlackBuild +++ b/network/openfire/openfire.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh # # Slackware build script for Zeromq-jzmq # Written by Mário Antunes (mario.antunes@av.it.pt) @@ -38,9 +38,9 @@ bailout() { # Bail if user and/or group isn't valid on your system # uid=265 is suggested to avoid conflicts with other SBo packages, # but it's your call: http://slackbuilds.org/uid_gid.txt -if ! grep -q "^$OPENFIRE_USER:" /etc/passwd; then +if ! getent passwd $OPENFIRE_USER 2>/dev/null; then bailout -elif ! grep -q "^$OPENFIRE_GROUP:" /etc/group; then +elif ! getent group $OPENFIRE_GROUP 2>/dev/null; then bailout fi -- cgit v1.2.3