mirror of
https://github.com/moparisthebest/HttpUploadComponent
synced 2024-11-21 08:25:02 -05:00
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.
This commit is contained in:
parent
3beabfcc9f
commit
89e54ac90a
@ -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…
Reference in New Issue
Block a user