Browse Source

Reference include file before exporting $USER

We should check for and pull in the include file before exporting `$USER` in case the user has opted to override the default setting.
master
Deoren Moor 8 years ago
parent
commit
89e54ac90a
  1. 3
      contrib/httpuploadcomponent

3
contrib/httpuploadcomponent

@ -20,11 +20,12 @@ CONFIG=/etc/prosody/HttpUploadComponent.yml @@ -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

Loading…
Cancel
Save