mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +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
df63fcd353
commit
95e085beb7
@ -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