25
1
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:
Peter Lemenkov 2010-02-16 18:04:37 +03:00 committed by Badlop
parent 37a23e69d7
commit c316bfae25

View File

@ -70,7 +70,7 @@ if [ "$ID" -eq "$EJID" ] ; then
fi
if [ "$EXEC_CMD" = "false" ] ; then
echo "This command can only be run by root or the user $INSTALLUSER" >&2
exit 1
exit 4
fi
NAME=-name