mirror of
https://github.com/moparisthebest/HttpUploadComponent
synced 2024-11-24 18:02:16 -05:00
Merge pull request #40 from deoren/init-script-include-file-order
Reference include file before exporting $USER
This commit is contained in:
commit
f6b3a94652
@ -20,11 +20,12 @@ CONFIG=/etc/prosody/HttpUploadComponent.yml
|
|||||||
LOGFILE=/var/log/prosody/httpuploadcomponent.log
|
LOGFILE=/var/log/prosody/httpuploadcomponent.log
|
||||||
PIDFILE=/var/run/${NAME}.pid
|
PIDFILE=/var/run/${NAME}.pid
|
||||||
USER=prosody
|
USER=prosody
|
||||||
export LOGNAME=$USER
|
|
||||||
|
|
||||||
# Allow user to override default values listed above
|
# Allow user to override default values listed above
|
||||||
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
||||||
|
|
||||||
|
export LOGNAME=$USER
|
||||||
|
|
||||||
test -x $DAEMON || exit 0
|
test -x $DAEMON || exit 0
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
Loading…
Reference in New Issue
Block a user