diff options
author | David Spencer <baildon.research@googlemail.com> | 2016-11-09 17:06:34 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2016-11-11 20:36:22 +0000 |
commit | 9beffd8789e903b05d576cc2e7f76ed08f7497be (patch) | |
tree | a65765a58e0b56f38fd2b85c36980518ebdccf0d /system/ossec-server/ossec-server.SlackBuild | |
parent | c5bed608309fa29d81b1820369ed0206567b5c75 (diff) | |
download | slackbuilds-9beffd8789e903b05d576cc2e7f76ed08f7497be.tar.gz |
system/ossec-server: Fix exit status, add uid/gid info.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/ossec-server/ossec-server.SlackBuild')
-rw-r--r-- | system/ossec-server/ossec-server.SlackBuild | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/ossec-server/ossec-server.SlackBuild b/system/ossec-server/ossec-server.SlackBuild index 84fb6e7913..d2a554b447 100644 --- a/system/ossec-server/ossec-server.SlackBuild +++ b/system/ossec-server/ossec-server.SlackBuild @@ -62,7 +62,7 @@ USERID_REMOTE=${USERID_REMOTE:-335} GROUPID=${GROUPID:-333} if ! grep ^ossec: /etc/group 2>&1 > /dev/null \ -|| ! grep -E '^(ossec|ossecm|ossecr):' /etc/passwd 2>&1 > /dev/null; then + || ! grep -E '^(ossec|ossecm|ossecr):' /etc/passwd 2>&1 > /dev/null; then echo -e "\n You must have ossec users and a group to run this script\n" fi @@ -86,9 +86,9 @@ if ! grep ^ossecr: /etc/passwd 2>&1 > /dev/null; then fi if ! grep ^ossec: /etc/group 2>&1 > /dev/null \ -|| ! grep -E '^(ossec|ossecm|ossecr):' /etc/passwd 2>&1 > /dev/null; then + || ! grep -E '^(ossec|ossecm|ossecr):' /etc/passwd 2>&1 > /dev/null; then echo - exit + exit 1 fi set -e |