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