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:
parent
e571108030
commit
8f732a423d
|
@ -166,7 +166,7 @@ then
|
||||||
ETC=$HOME/etc
|
ETC=$HOME/etc
|
||||||
fi
|
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
|
if [ -f "$CONFIG" ] ; then
|
||||||
readConfig "$CONFIG"
|
readConfig "$CONFIG"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue