allow non root user load config from /etc/default/

https://github.com/eclipse/jetty.project/pull/37

Signed-off-by: btpka3 <btpka3@163.com>
This commit is contained in:
btpka3 2015-01-30 12:33:43 +08:00 committed by Greg Wilkins
parent dfd32e6790
commit b0682ed423
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ then
ETC=$HOME/etc
fi
for CONFIG in $ETC/default/${NAME}{,9} $HOME/.${NAME}rc; do
for CONFIG in {/etc,~/etc}/default/${NAME}{,9} $HOME/.${NAME}rc; do
if [ -f "$CONFIG" ] ; then
readConfig "$CONFIG"
fi