mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 06:10:42 +01:00
Export TMPDIR if it exists in the .shorewallrc file
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
7b9c1d43cd
commit
8a164adf98
@ -85,14 +85,24 @@ g_noroutes=$NOROUTES
|
||||
g_timestamp=$TIMESTAMP
|
||||
g_recovering=$RECOVERING
|
||||
|
||||
if [ -f ~/.shorewallrc ]; then
|
||||
if [ -f ./.shorewallrc ]; then
|
||||
. ./.shorewallrc || exit 1
|
||||
elif [ -f ~/.shorewallrc ]; then
|
||||
. ~/.shorewallrc || exit 1
|
||||
elif [ -r /root/.shorewallrc ]; then
|
||||
. /root/.shorewallrc || exit 1
|
||||
elif [ -r /.shorewallrc ]; then
|
||||
. /root/.shorewallrc || exit 1
|
||||
elif - -f ${SHOREAWLLRC_HOME}/.shorewallrc; then
|
||||
. ${SHOREAWLLRC_HOME}/.shorewallrc || exit 1
|
||||
else
|
||||
CONFDIR=/etc
|
||||
SHAREDIR=/usr/share
|
||||
VARDIR=/var/lib
|
||||
fi
|
||||
|
||||
[ -n "$TMPDIR" ] && export TMPDIR
|
||||
|
||||
initialize
|
||||
|
||||
if [ -n "$STARTUP_LOG" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user