mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
More compliance with LSB
The init-script shall return 4 in case then user doesn't have sufficient privileges for action. See http://refspecs.freestandards.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
This commit is contained in:
parent
37a23e69d7
commit
c316bfae25
@ -70,7 +70,7 @@ if [ "$ID" -eq "$EJID" ] ; then
|
|||||||
fi
|
fi
|
||||||
if [ "$EXEC_CMD" = "false" ] ; then
|
if [ "$EXEC_CMD" = "false" ] ; then
|
||||||
echo "This command can only be run by root or the user $INSTALLUSER" >&2
|
echo "This command can only be run by root or the user $INSTALLUSER" >&2
|
||||||
exit 1
|
exit 4
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NAME=-name
|
NAME=-name
|
||||||
|
Loading…
Reference in New Issue
Block a user