mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 03:59:16 +01:00
Remove more absolute path names
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
38b6dca223
commit
319d07b1d3
@ -859,12 +859,14 @@ show_command() {
|
|||||||
echo "VARDIR=$VARDIR"
|
echo "VARDIR=$VARDIR"
|
||||||
echo "LIBEXEC=$g_libexec"
|
echo "LIBEXEC=$g_libexec"
|
||||||
echo "SBINDIR=$g_sbindir"
|
echo "SBINDIR=$g_sbindir"
|
||||||
|
echo "CONFDIR=${CONFDIR}"
|
||||||
[ -n "$g_lite" ] && [ ${VARDIR} != /var/lib/$g_program ] && echo "LITEDIR=${VARDIR}"
|
[ -n "$g_lite" ] && [ ${VARDIR} != /var/lib/$g_program ] && echo "LITEDIR=${VARDIR}"
|
||||||
else
|
else
|
||||||
echo "Default CONFIG_PATH is $CONFIG_PATH"
|
echo "Default CONFIG_PATH is $CONFIG_PATH"
|
||||||
echo "Default VARDIR is /var/lib/$g_program"
|
echo "Default VARDIR is /var/lib/$g_program"
|
||||||
echo "LIBEXEC is $g_libexec"
|
echo "LIBEXEC is $g_libexec"
|
||||||
echo "SBINDIR is $g_sbindir"
|
echo "SBINDIR is $g_sbindir"
|
||||||
|
echo "CONFDIR is ${CONFDIR}"
|
||||||
[ -n "$g_lite" ] && [ ${VARDIR} != /var/lib/$g_program ] && echo "LITEDIR is ${VARDIR}"
|
[ -n "$g_lite" ] && [ ${VARDIR} != /var/lib/$g_program ] && echo "LITEDIR is ${VARDIR}"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
@ -1126,8 +1128,8 @@ do_dump_command() {
|
|||||||
echo "$g_product $SHOREWALL_VERSION Dump at $g_hostname - $(date)"
|
echo "$g_product $SHOREWALL_VERSION Dump at $g_hostname - $(date)"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [ $g_family -eq 6 ] && [ -f /usr/share/shorewall/version ]; then
|
if [ $g_family -eq 6 ] && [ -f ${SHAREDIR}/shorewall/version ]; then
|
||||||
echo " Shorewall $(cat /usr/share/shorewall/version)"
|
echo " Shorewall $(cat ${SHAREDIR}/shorewall/version)"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
show_status
|
show_status
|
||||||
|
@ -1308,6 +1308,8 @@ reload_command() # $* = original arguments less the command.
|
|||||||
root=root
|
root=root
|
||||||
local libexec
|
local libexec
|
||||||
libexec=/usr/share
|
libexec=/usr/share
|
||||||
|
local confdir
|
||||||
|
confdir=/etc
|
||||||
|
|
||||||
litedir=/var/lib/${g_program}-lite
|
litedir=/var/lib/${g_program}-lite
|
||||||
|
|
||||||
@ -1389,6 +1391,10 @@ reload_command() # $* = original arguments less the command.
|
|||||||
sbindir=/sbin
|
sbindir=/sbin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
temp=$(rsh_command ${g_program}-lite show config 2> /dev/null | grep ^CONFDIR | sed 's/CONFDIR is //')
|
||||||
|
|
||||||
|
[ -n "$temp" ] && confdir="$temp"
|
||||||
|
|
||||||
if [ -z "$getcaps" ]; then
|
if [ -z "$getcaps" ]; then
|
||||||
g_shorewalldir=$(resolve_file $directory)
|
g_shorewalldir=$(resolve_file $directory)
|
||||||
ensure_config_path
|
ensure_config_path
|
||||||
@ -1431,7 +1437,6 @@ reload_command() # $* = original arguments less the command.
|
|||||||
|
|
||||||
[ -f $save ] && progress_message3 "Copying $save to ${system}:/etc/${g_program}-lite/" && rcp_command $save /etc/shorewall-lite/
|
[ -f $save ] && progress_message3 "Copying $save to ${system}:/etc/${g_program}-lite/" && rcp_command $save /etc/shorewall-lite/
|
||||||
|
|
||||||
progress_message3 "Copy complete"
|
|
||||||
if [ $COMMAND = reload ]; then
|
if [ $COMMAND = reload ]; then
|
||||||
rsh_command "${sbindir}/${g_program}-lite $g_debugging $verbose $timestamp restart" && \
|
rsh_command "${sbindir}/${g_program}-lite $g_debugging $verbose $timestamp restart" && \
|
||||||
progress_message3 "System $system reloaded" || saveit=
|
progress_message3 "System $system reloaded" || saveit=
|
||||||
|
Loading…
Reference in New Issue
Block a user