forked from extern/shorewall_code
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_timestamp=$TIMESTAMP
|
||||||
g_recovering=$RECOVERING
|
g_recovering=$RECOVERING
|
||||||
|
|
||||||
if [ -f ~/.shorewallrc ]; then
|
if [ -f ./.shorewallrc ]; then
|
||||||
|
. ./.shorewallrc || exit 1
|
||||||
|
elif [ -f ~/.shorewallrc ]; then
|
||||||
. ~/.shorewallrc || exit 1
|
. ~/.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
|
else
|
||||||
CONFDIR=/etc
|
CONFDIR=/etc
|
||||||
SHAREDIR=/usr/share
|
SHAREDIR=/usr/share
|
||||||
VARDIR=/var/lib
|
VARDIR=/var/lib
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ -n "$TMPDIR" ] && export TMPDIR
|
||||||
|
|
||||||
initialize
|
initialize
|
||||||
|
|
||||||
if [ -n "$STARTUP_LOG" ]; then
|
if [ -n "$STARTUP_LOG" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user