25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +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 df63fcd353
commit 95e085beb7

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