diff options
author | David Spencer <baildon.research@googlemail.com> | 2016-11-09 17:05:56 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2016-11-11 20:36:22 +0000 |
commit | a175ac8983b7f5e33773ca43091b27322776aed8 (patch) | |
tree | 59dc6f6c9a9213b913f86e2f2cc078d98b3b06e5 /system/ossec-agent/ossec-agent.SlackBuild | |
parent | d50dc96bce019252df8d1ebb577a38507d264f45 (diff) | |
download | slackbuilds-a175ac8983b7f5e33773ca43091b27322776aed8.tar.gz |
system/ossec-agent: 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-agent/ossec-agent.SlackBuild')
-rw-r--r-- | system/ossec-agent/ossec-agent.SlackBuild | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/ossec-agent/ossec-agent.SlackBuild b/system/ossec-agent/ossec-agent.SlackBuild index 8522b3143f..988fb3ee2d 100644 --- a/system/ossec-agent/ossec-agent.SlackBuild +++ b/system/ossec-agent/ossec-agent.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 |