Merge pull request #40 from deoren/init-script-include-file-order

Reference include file before exporting $USER
This commit is contained in:
Daniel Gultsch 2015-08-19 16:44:47 +02:00
commit f6b3a94652

View File

@ -20,11 +20,12 @@ CONFIG=/etc/prosody/HttpUploadComponent.yml
LOGFILE=/var/log/prosody/httpuploadcomponent.log
PIDFILE=/var/run/${NAME}.pid
USER=prosody
export LOGNAME=$USER
# Allow user to override default values listed above
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
export LOGNAME=$USER
test -x $DAEMON || exit 0
set -e