From 23e869ad5017f0df5e7ba5f21d7f44849bb8b3b8 Mon Sep 17 00:00:00 2001 From: Tuomo Soini Date: Mon, 24 Nov 2014 09:43:32 +0200 Subject: [PATCH] shorewall-init: correctly set STATEDIR, we can't use VARDIR from shorewallrc Signed-off-by: Tuomo Soini --- Shorewall-init/init.debian.sh | 2 +- Shorewall-init/init.fedora.sh | 2 +- Shorewall-init/init.sh | 2 +- Shorewall-init/init.suse.sh | 2 +- Shorewall-init/shorewall-init | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Shorewall-init/init.debian.sh b/Shorewall-init/init.debian.sh index b975a21b4..81ad9ea1c 100755 --- a/Shorewall-init/init.debian.sh +++ b/Shorewall-init/init.debian.sh @@ -71,7 +71,7 @@ setstatedir() { statedir=$( . /${CONFDIR}/${PRODUCT}/vardir && echo $VARDIR ) fi - [ -n "$statedir" ] && STATEDIR=${statedir} || STATEDIR=${VARDIR}/${PRODUCT} + [ -n "$statedir" ] && STATEDIR=${statedir} || STATEDIR=${VARLIB}/${PRODUCT} if [ $PRODUCT = shorewall -o $PRODUCT = shorewall6 ]; then ${SBINDIR}/$PRODUCT ${OPTIONS} compile -c || echo_notdone diff --git a/Shorewall-init/init.fedora.sh b/Shorewall-init/init.fedora.sh index 53924af2d..69ff15f0c 100755 --- a/Shorewall-init/init.fedora.sh +++ b/Shorewall-init/init.fedora.sh @@ -42,7 +42,7 @@ setstatedir() { statedir=$( . /${CONFDIR}/${PRODUCT}/vardir && echo $VARDIR ) fi - [ -n "$statedir" ] && STATEDIR=${statedir} || STATEDIR=${VARDIR}/${PRODUCT} + [ -n "$statedir" ] && STATEDIR=${statedir} || STATEDIR=${VARLIB}/${PRODUCT} if [ $PRODUCT == shorewall -o $PRODUCT == shorewall6 ]; then ${SBINDIR}/$PRODUCT $OPTIONS compile -c diff --git a/Shorewall-init/init.sh b/Shorewall-init/init.sh index 4a23ff416..e335780ab 100755 --- a/Shorewall-init/init.sh +++ b/Shorewall-init/init.sh @@ -67,7 +67,7 @@ setstatedir() { statedir=$( . /${CONFDIR}/${PRODUCT}/vardir && echo $VARDIR ) fi - [ -n "$statedir" ] && STATEDIR=${statedir} || STATEDIR=${VARDIR}/${PRODUCT} + [ -n "$statedir" ] && STATEDIR=${statedir} || STATEDIR=${VARLIB}/${PRODUCT} if [ ! -x $STATEDIR/firewall ]; then if [ $PRODUCT = shorewall -o $PRODUCT = shorewall6 ]; then diff --git a/Shorewall-init/init.suse.sh b/Shorewall-init/init.suse.sh index a7795d53b..a9a4c729e 100755 --- a/Shorewall-init/init.suse.sh +++ b/Shorewall-init/init.suse.sh @@ -77,7 +77,7 @@ setstatedir() { statedir=$( . /${CONFDIR}/${PRODUCT}/vardir && echo $VARDIR ) fi - [ -n "$statedir" ] && STATEDIR=${statedir} || STATEDIR=${VARDIR}/${PRODUCT} + [ -n "$statedir" ] && STATEDIR=${statedir} || STATEDIR=${VARLIB}/${PRODUCT} if [ $PRODUCT = shorewall -o $PRODUCT = shorewall6 ]; then ${SBINDIR}/$PRODUCT ${OPTIONS} compile -c || exit diff --git a/Shorewall-init/shorewall-init b/Shorewall-init/shorewall-init index 52b1e6426..65a5befb7 100644 --- a/Shorewall-init/shorewall-init +++ b/Shorewall-init/shorewall-init @@ -30,7 +30,7 @@ setstatedir() { statedir=$( . /${CONFDIR}/${PRODUCT}/vardir && echo $VARDIR ) fi - [ -n "$statedir" ] && STATEDIR=${statedir} || STATEDIR=${VARDIR}/${PRODUCT} + [ -n "$statedir" ] && STATEDIR=${statedir} || STATEDIR=${VARLIB}/${PRODUCT} if [ $PRODUCT = shorewall -o $PRODUCT = shorewall6 ]; then ${SBINDIR}/$PRODUCT ${OPTIONS} compile -c || exit 1