mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 07:33:43 +01:00
Replace product names by product vars
Signed-off-by: Matt Darfeuille <matdarf@gmail.com> Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
6966270822
commit
a6eebc8ecf
@ -126,7 +126,7 @@ while [ $finished -eq 0 ]; do
|
|||||||
usage 0
|
usage 0
|
||||||
;;
|
;;
|
||||||
v)
|
v)
|
||||||
echo "Shorewall Firewall Installer Version $VERSION"
|
echo "$Product Firewall Installer Version $VERSION"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -315,7 +315,7 @@ if [ -n "$DESTDIR" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Installing Shorewall Core Version $VERSION"
|
echo "Installing $Product Version $VERSION"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create directories
|
# Create directories
|
||||||
@ -454,4 +454,4 @@ fi
|
|||||||
#
|
#
|
||||||
# Report Success
|
# Report Success
|
||||||
#
|
#
|
||||||
echo "Shorewall Core Version $VERSION Installed"
|
echo "$Product Version $VERSION Installed"
|
||||||
|
@ -104,20 +104,20 @@ fi
|
|||||||
if [ -f ${SHAREDIR}/shorewall/coreversion ]; then
|
if [ -f ${SHAREDIR}/shorewall/coreversion ]; then
|
||||||
INSTALLED_VERSION="$(cat ${SHAREDIR}/shorewall/coreversion)"
|
INSTALLED_VERSION="$(cat ${SHAREDIR}/shorewall/coreversion)"
|
||||||
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
||||||
echo "WARNING: Shorewall Core Version $INSTALLED_VERSION is installed"
|
echo "WARNING: $Product Version $INSTALLED_VERSION is installed"
|
||||||
echo " and this is the $VERSION uninstaller."
|
echo " and this is the $VERSION uninstaller."
|
||||||
VERSION="$INSTALLED_VERSION"
|
VERSION="$INSTALLED_VERSION"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "WARNING: Shorewall Core Version $VERSION is not installed"
|
echo "WARNING: $Product Version $VERSION is not installed"
|
||||||
VERSION=""
|
VERSION=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Uninstalling Shorewall Core $VERSION"
|
echo "Uninstalling $Product $VERSION"
|
||||||
|
|
||||||
rm -rf ${SHAREDIR}/shorewall
|
rm -rf ${SHAREDIR}/shorewall
|
||||||
rm -f ~/.shorewallrc
|
rm -f ~/.shorewallrc
|
||||||
|
|
||||||
echo "Shorewall Core Uninstalled"
|
echo "$Product Uninstalled"
|
||||||
|
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ while [ $finished -eq 0 ] ; do
|
|||||||
usage 0
|
usage 0
|
||||||
;;
|
;;
|
||||||
v)
|
v)
|
||||||
echo "Shorewall-init Firewall Installer Version $VERSION"
|
echo "$Product Firewall Installer Version $VERSION"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
n*)
|
n*)
|
||||||
@ -318,12 +318,12 @@ if [ -n "$DESTDIR" ]; then
|
|||||||
make_directory ${DESTDIR}${INITDIR} 0755
|
make_directory ${DESTDIR}${INITDIR} 0755
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Installing Shorewall Init Version $VERSION"
|
echo "Installing $Product Version $VERSION"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Check for /usr/share/shorewall-init/version
|
# Check for /usr/share/shorewall-init/version
|
||||||
#
|
#
|
||||||
if [ -f ${DESTDIR}${SHAREDIR}/shorewall-init/version ]; then
|
if [ -f ${DESTDIR}${SHAREDIR}/$PRODUCT/version ]; then
|
||||||
first_install=""
|
first_install=""
|
||||||
else
|
else
|
||||||
first_install="Yes"
|
first_install="Yes"
|
||||||
@ -366,16 +366,16 @@ if [ -n "$SERVICEDIR" ]; then
|
|||||||
mkdir -p ${DESTDIR}${SBINDIR}
|
mkdir -p ${DESTDIR}${SBINDIR}
|
||||||
chmod 0755 ${DESTDIR}${SBINDIR}
|
chmod 0755 ${DESTDIR}${SBINDIR}
|
||||||
fi
|
fi
|
||||||
install_file shorewall-init ${DESTDIR}${SBINDIR}/shorewall-init 0700
|
install_file $PRODUCT ${DESTDIR}${SBINDIR}/$PRODUCT 0700
|
||||||
[ "${SHAREDIR}" = /usr/share ] || eval sed -i \'s\|/usr/share/\|${SHAREDIR}/\|\' ${DESTDIR}${SBINDIR}/shorewall-init
|
[ "${SHAREDIR}" = /usr/share ] || eval sed -i \'s\|/usr/share/\|${SHAREDIR}/\|\' ${DESTDIR}${SBINDIR}/$PRODUCT
|
||||||
echo "CLI installed as ${DESTDIR}${SBINDIR}/shorewall-init"
|
echo "CLI installed as ${DESTDIR}${SBINDIR}/$PRODUCT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create /usr/share/shorewall-init if needed
|
# Create /usr/share/shorewall-init if needed
|
||||||
#
|
#
|
||||||
mkdir -p ${DESTDIR}${SHAREDIR}/shorewall-init
|
mkdir -p ${DESTDIR}${SHAREDIR}/$PRODUCT
|
||||||
chmod 0755 ${DESTDIR}${SHAREDIR}/shorewall-init
|
chmod 0755 ${DESTDIR}${SHAREDIR}/$PRODUCT
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install logrotate file
|
# Install logrotate file
|
||||||
@ -388,15 +388,15 @@ fi
|
|||||||
#
|
#
|
||||||
# Create the version file
|
# Create the version file
|
||||||
#
|
#
|
||||||
echo "$VERSION" > ${DESTDIR}/${SHAREDIR}/shorewall-init/version
|
echo "$VERSION" > ${DESTDIR}/${SHAREDIR}/$PRODUCT/version
|
||||||
chmod 0644 ${DESTDIR}${SHAREDIR}/shorewall-init/version
|
chmod 0644 ${DESTDIR}${SHAREDIR}/$PRODUCT/version
|
||||||
|
|
||||||
#
|
#
|
||||||
# Remove and create the symbolic link to the init script
|
# Remove and create the symbolic link to the init script
|
||||||
#
|
#
|
||||||
if [ -z "$DESTDIR" ]; then
|
if [ -z "$DESTDIR" ]; then
|
||||||
rm -f ${SHAREDIR}/shorewall-init/init
|
rm -f ${SHAREDIR}/$PRODUCT/init
|
||||||
ln -s ${INITDIR}/${INITFILE} ${SHAREDIR}/shorewall-init/init
|
ln -s ${INITDIR}/${INITFILE} ${SHAREDIR}/$PRODUCT/init
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $HOST = debian ]; then
|
if [ $HOST = debian ]; then
|
||||||
@ -410,13 +410,13 @@ if [ $HOST = debian ]; then
|
|||||||
mkdir -p ${DESTDIR}${CONFDIR}/network/if-post-down.d/
|
mkdir -p ${DESTDIR}${CONFDIR}/network/if-post-down.d/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f ${DESTDIR}${CONFDIR}/default/shorewall-init ]; then
|
if [ ! -f ${DESTDIR}${CONFDIR}/default/$PRODUCT ]; then
|
||||||
if [ -n "${DESTDIR}" ]; then
|
if [ -n "${DESTDIR}" ]; then
|
||||||
mkdir -p ${DESTDIR}${ETC}/default
|
mkdir -p ${DESTDIR}${ETC}/default
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ $configure -eq 1 ] || mkdir -p ${DESTDIR}${CONFDIR}/default
|
[ $configure -eq 1 ] || mkdir -p ${DESTDIR}${CONFDIR}/default
|
||||||
install_file sysconfig ${DESTDIR}${ETC}/default/shorewall-init 0644
|
install_file sysconfig ${DESTDIR}${ETC}/default/$PRODUCT 0644
|
||||||
echo "sysconfig file installed in ${DESTDIR}${SYSCONFDIR}/${PRODUCT}"
|
echo "sysconfig file installed in ${DESTDIR}${SYSCONFDIR}/${PRODUCT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -458,9 +458,9 @@ if [ $HOST != openwrt ]; then
|
|||||||
|
|
||||||
[ "${SHAREDIR}" = /usr/share ] || eval sed -i \'s\|/usr/share/\|${SHAREDIR}/\|\' ifupdown
|
[ "${SHAREDIR}" = /usr/share ] || eval sed -i \'s\|/usr/share/\|${SHAREDIR}/\|\' ifupdown
|
||||||
|
|
||||||
mkdir -p ${DESTDIR}${LIBEXECDIR}/shorewall-init
|
mkdir -p ${DESTDIR}${LIBEXECDIR}/$PRODUCT
|
||||||
|
|
||||||
install_file ifupdown ${DESTDIR}${LIBEXECDIR}/shorewall-init/ifupdown 0544
|
install_file ifupdown ${DESTDIR}${LIBEXECDIR}/$PRODUCT/ifupdown 0544
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d ${DESTDIR}/etc/NetworkManager ]; then
|
if [ -d ${DESTDIR}/etc/NetworkManager ]; then
|
||||||
@ -518,17 +518,17 @@ if [ -z "$DESTDIR" ]; then
|
|||||||
if [ $HOST = debian ]; then
|
if [ $HOST = debian ]; then
|
||||||
if [ -n "$SERVICEDIR" ]; then
|
if [ -n "$SERVICEDIR" ]; then
|
||||||
if systemctl enable ${PRODUCT}.service; then
|
if systemctl enable ${PRODUCT}.service; then
|
||||||
echo "Shorewall Init will start automatically at boot"
|
echo "$Product will start automatically at boot"
|
||||||
fi
|
fi
|
||||||
elif mywhich insserv; then
|
elif mywhich insserv; then
|
||||||
if insserv ${INITDIR}/shorewall-init; then
|
if insserv ${INITDIR}/$PRODUCT; then
|
||||||
echo "Shorewall Init will start automatically at boot"
|
echo "$Product will start automatically at boot"
|
||||||
else
|
else
|
||||||
cant_autostart
|
cant_autostart
|
||||||
fi
|
fi
|
||||||
elif mywhich update-rc.d ; then
|
elif mywhich update-rc.d ; then
|
||||||
if update-rc.d $PRODUCT enable; then
|
if update-rc.d $PRODUCT enable; then
|
||||||
echo "$PRODUCT will start automatically at boot"
|
echo "$Product will start automatically at boot"
|
||||||
echo "Set startup=1 in ${CONFDIR}/default/$PRODUCT to enable"
|
echo "Set startup=1 in ${CONFDIR}/default/$PRODUCT to enable"
|
||||||
else
|
else
|
||||||
cant_autostart
|
cant_autostart
|
||||||
@ -549,31 +549,31 @@ if [ -z "$DESTDIR" ]; then
|
|||||||
/bin/true
|
/bin/true
|
||||||
else
|
else
|
||||||
if [ -n "$SERVICEDIR" ]; then
|
if [ -n "$SERVICEDIR" ]; then
|
||||||
if systemctl enable shorewall-init.service; then
|
if systemctl enable ${PRODUCT}.service; then
|
||||||
echo "Shorewall Init will start automatically at boot"
|
echo "$Product will start automatically at boot"
|
||||||
fi
|
fi
|
||||||
elif [ -x ${SBINDIR}/insserv -o -x /usr${SBINDIR}/insserv ]; then
|
elif [ -x ${SBINDIR}/insserv -o -x /usr${SBINDIR}/insserv ]; then
|
||||||
if insserv ${INITDIR}/shorewall-init ; then
|
if insserv ${INITDIR}/$PRODUCT ; then
|
||||||
echo "Shorewall Init will start automatically at boot"
|
echo "$Product will start automatically at boot"
|
||||||
else
|
else
|
||||||
cant_autostart
|
cant_autostart
|
||||||
fi
|
fi
|
||||||
elif [ -x ${SBINDIR}/chkconfig -o -x /usr${SBINDIR}/chkconfig ]; then
|
elif [ -x ${SBINDIR}/chkconfig -o -x /usr${SBINDIR}/chkconfig ]; then
|
||||||
if chkconfig --add shorewall-init ; then
|
if chkconfig --add $PRODUCT ; then
|
||||||
echo "Shorewall Init will start automatically in run levels as follows:"
|
echo "$Product will start automatically at boot"
|
||||||
chkconfig --list shorewall-init
|
chkconfig --list $PRODUCT
|
||||||
else
|
else
|
||||||
cant_autostart
|
cant_autostart
|
||||||
fi
|
fi
|
||||||
elif [ -x ${SBINDIR}/rc-update ]; then
|
elif [ -x ${SBINDIR}/rc-update ]; then
|
||||||
if rc-update add shorewall-init default; then
|
if rc-update add $PRODUCT default; then
|
||||||
echo "Shorewall Init will start automatically at boot"
|
echo "$Product will start automatically at boot"
|
||||||
else
|
else
|
||||||
cant_autostart
|
cant_autostart
|
||||||
fi
|
fi
|
||||||
elif [ $HOST = openwrt -a -f ${CONFDIR}/rc.common ]; then
|
elif [ $HOST = openwrt -a -f ${CONFDIR}/rc.common ]; then
|
||||||
/etc/init.d/$PRODUCT enable
|
/etc/init.d/$PRODUCT enable
|
||||||
if /etc/init.d/shorewall-init enabled; then
|
if /etc/init.d/$PRODUCT enabled; then
|
||||||
echo "$Product will start automatically at boot"
|
echo "$Product will start automatically at boot"
|
||||||
else
|
else
|
||||||
cant_autostart
|
cant_autostart
|
||||||
@ -590,8 +590,8 @@ else
|
|||||||
mkdir -p ${DESTDIR}/etc/rcS.d
|
mkdir -p ${DESTDIR}/etc/rcS.d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -sf ../init.d/shorewall-init ${DESTDIR}${CONFDIR}/rcS.d/S38shorewall-init
|
ln -sf ../init.d/$PRODUCT ${DESTDIR}${CONFDIR}/rcS.d/S38${PRODUCT}
|
||||||
echo "Shorewall Init will start automatically at boot"
|
echo "$Product will start automatically at boot"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -603,7 +603,7 @@ if [ -d ${DESTDIR}/etc/ppp ]; then
|
|||||||
debian|suse)
|
debian|suse)
|
||||||
for directory in ip-up.d ip-down.d ipv6-up.d ipv6-down.d; do
|
for directory in ip-up.d ip-down.d ipv6-up.d ipv6-down.d; do
|
||||||
mkdir -p ${DESTDIR}/etc/ppp/$directory #SuSE doesn't create the IPv6 directories
|
mkdir -p ${DESTDIR}/etc/ppp/$directory #SuSE doesn't create the IPv6 directories
|
||||||
cp -fp ${DESTDIR}${LIBEXECDIR}/shorewall-init/ifupdown ${DESTDIR}${CONFDIR}/ppp/$directory/shorewall
|
cp -fp ${DESTDIR}${LIBEXECDIR}/$PRODUCT/ifupdown ${DESTDIR}${CONFDIR}/ppp/$directory/shorewall
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
redhat)
|
redhat)
|
||||||
@ -614,13 +614,13 @@ if [ -d ${DESTDIR}/etc/ppp ]; then
|
|||||||
FILE=${DESTDIR}/etc/ppp/$file
|
FILE=${DESTDIR}/etc/ppp/$file
|
||||||
if [ -f $FILE ]; then
|
if [ -f $FILE ]; then
|
||||||
if grep -qF Shorewall-based $FILE ; then
|
if grep -qF Shorewall-based $FILE ; then
|
||||||
cp -fp ${DESTDIR}${LIBEXECDIR}/shorewall-init/ifupdown $FILE
|
cp -fp ${DESTDIR}${LIBEXECDIR}/$PRODUCT/ifupdown $FILE
|
||||||
else
|
else
|
||||||
echo "$FILE already exists -- ppp devices will not be handled"
|
echo "$FILE already exists -- ppp devices will not be handled"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
cp -fp ${DESTDIR}${LIBEXECDIR}/shorewall-init/ifupdown $FILE
|
cp -fp ${DESTDIR}${LIBEXECDIR}/$PRODUCT/ifupdown $FILE
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
@ -146,34 +146,34 @@ else
|
|||||||
usage 1
|
usage 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f ${SHAREDIR}/shorewall-init/version ]; then
|
if [ -f ${SHAREDIR}/$PRODUCT/version ]; then
|
||||||
INSTALLED_VERSION="$(cat ${SHAREDIR}/shorewall-init/version)"
|
INSTALLED_VERSION="$(cat ${SHAREDIR}/$PRODUCT/version)"
|
||||||
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
||||||
echo "WARNING: Shorewall Init Version $INSTALLED_VERSION is installed"
|
echo "WARNING: $Product Version $INSTALLED_VERSION is installed"
|
||||||
echo " and this is the $VERSION uninstaller."
|
echo " and this is the $VERSION uninstaller."
|
||||||
VERSION="$INSTALLED_VERSION"
|
VERSION="$INSTALLED_VERSION"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "WARNING: Shorewall Init Version $VERSION is not installed"
|
echo "WARNING: $Product Version $VERSION is not installed"
|
||||||
VERSION=""
|
VERSION=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${LIBEXEC:=${SHAREDIR}}" ]
|
[ -n "${LIBEXEC:=${SHAREDIR}}" ]
|
||||||
|
|
||||||
echo "Uninstalling Shorewall Init $VERSION"
|
echo "Uninstalling $Product $VERSION"
|
||||||
|
|
||||||
[ -n "$SANDBOX" ] && configure=0
|
[ -n "$SANDBOX" ] && configure=0
|
||||||
|
|
||||||
INITSCRIPT=${CONFDIR}/init.d/shorewall-init
|
INITSCRIPT=${CONFDIR}/init.d/$PRODUCT
|
||||||
|
|
||||||
if [ -f "$INITSCRIPT" ]; then
|
if [ -f "$INITSCRIPT" ]; then
|
||||||
if [ $configure -eq 1 ]; then
|
if [ $configure -eq 1 ]; then
|
||||||
if [ $HOST = openwrt ]; then
|
if [ $HOST = openwrt ]; then
|
||||||
if /etc/init.d/shorewall-init enabled; then
|
if /etc/init.d/$PRODUCT enabled; then
|
||||||
/etc/init.d/shorewall-init disable
|
/etc/init.d/$PRODUCT disable
|
||||||
fi
|
fi
|
||||||
elif mywhich updaterc.d ; then
|
elif mywhich updaterc.d ; then
|
||||||
updaterc.d shorewall-init remove
|
updaterc.d $PRODUCT remove
|
||||||
elif mywhich insserv ; then
|
elif mywhich insserv ; then
|
||||||
insserv -r $INITSCRIPT
|
insserv -r $INITSCRIPT
|
||||||
elif mywhich chkconfig ; then
|
elif mywhich chkconfig ; then
|
||||||
@ -189,20 +189,20 @@ if [ -z "${SERVICEDIR}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$SERVICEDIR" ]; then
|
if [ -n "$SERVICEDIR" ]; then
|
||||||
[ $configure -eq 1 ] && systemctl disable shorewall-init.service
|
[ $configure -eq 1 ] && systemctl disable ${PRODUCT}.service
|
||||||
rm -f $SERVICEDIR/shorewall-init.service
|
rm -f $SERVICEDIR/${PRODUCT}.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $HOST = openwrt ]; then
|
if [ $HOST = openwrt ]; then
|
||||||
[ "$(readlink -q ${SBINDIR}/ifup-local)" = ${SHAREDIR}/shorewall-init ] && remove_file ${SBINDIR}/ifup-local
|
[ "$(readlink -q ${SBINDIR}/ifup-local)" = ${SHAREDIR}/$PRODUCT ] && remove_file ${SBINDIR}/ifup-local
|
||||||
[ "$(readlink -q ${SBINDIR}/ifdown-local)" = ${SHAREDIR}/shorewall-init ] && remove_file ${SBINDIR}/ifdown-local
|
[ "$(readlink -q ${SBINDIR}/ifdown-local)" = ${SHAREDIR}/$PRODUCT ] && remove_file ${SBINDIR}/ifdown-local
|
||||||
else
|
else
|
||||||
[ "$(readlink -m -q ${SBINDIR}/ifup-local)" = ${SHAREDIR}/shorewall-init ] && remove_file ${SBINDIR}/ifup-local
|
[ "$(readlink -m -q ${SBINDIR}/ifup-local)" = ${SHAREDIR}/$PRODUCT ] && remove_file ${SBINDIR}/ifup-local
|
||||||
[ "$(readlink -m -q ${SBINDIR}/ifdown-local)" = ${SHAREDIR}/shorewall-init ] && remove_file ${SBINDIR}/ifdown-local
|
[ "$(readlink -m -q ${SBINDIR}/ifdown-local)" = ${SHAREDIR}/$PRODUCT ] && remove_file ${SBINDIR}/ifdown-local
|
||||||
fi
|
fi
|
||||||
|
|
||||||
remove_file ${CONFDIR}/default/shorewall-init
|
remove_file ${CONFDIR}/default/$PRODUCT
|
||||||
remove_file ${CONFDIR}/sysconfig/shorewall-init
|
remove_file ${CONFDIR}/sysconfig/$PRODUCT
|
||||||
|
|
||||||
remove_file ${CONFDIR}/NetworkManager/dispatcher.d/01-shorewall
|
remove_file ${CONFDIR}/NetworkManager/dispatcher.d/01-shorewall
|
||||||
|
|
||||||
@ -227,10 +227,10 @@ if [ -d ${CONFDIR}/ppp ]; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f ${SBINDIR}/shorewall-init
|
rm -f ${SBINDIR}/$PRODUCT
|
||||||
rm -rf ${SHAREDIR}/shorewall-init
|
rm -rf ${SHAREDIR}/$PRODUCT
|
||||||
rm -rf ${LIBEXECDIR}/shorewall-init
|
rm -rf ${LIBEXECDIR}/$PRODUCT
|
||||||
|
|
||||||
echo "Shorewall Init Uninstalled"
|
echo "$Product Uninstalled"
|
||||||
|
|
||||||
|
|
||||||
|
@ -145,37 +145,37 @@ else
|
|||||||
usage 1
|
usage 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f ${SHAREDIR}/shorewall-lite/version ]; then
|
if [ -f ${SHAREDIR}/$PRODUCT/version ]; then
|
||||||
INSTALLED_VERSION="$(cat ${SHAREDIR}/shorewall-lite/version)"
|
INSTALLED_VERSION="$(cat ${SHAREDIR}/$PRODUCT/version)"
|
||||||
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
||||||
echo "WARNING: Shorewall Lite Version $INSTALLED_VERSION is installed"
|
echo "WARNING: $Product Version $INSTALLED_VERSION is installed"
|
||||||
echo " and this is the $VERSION uninstaller."
|
echo " and this is the $VERSION uninstaller."
|
||||||
VERSION="$INSTALLED_VERSION"
|
VERSION="$INSTALLED_VERSION"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "WARNING: Shorewall Lite Version $VERSION is not installed"
|
echo "WARNING: $Product Version $VERSION is not installed"
|
||||||
VERSION=""
|
VERSION=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Uninstalling Shorewall Lite $VERSION"
|
echo "Uninstalling $Product $VERSION"
|
||||||
|
|
||||||
[ -n "$SANDBOX" ] && configure=0
|
[ -n "$SANDBOX" ] && configure=0
|
||||||
|
|
||||||
if [ $configure -eq 1 ]; then
|
if [ $configure -eq 1 ]; then
|
||||||
if qt iptables -L shorewall -n && [ ! -f ${SBINDIR}/shorewall ]; then
|
if qt iptables -L shorewall -n && [ ! -f ${SBINDIR}/shorewall ]; then
|
||||||
shorewall-lite clear
|
$PRODUCT clear
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -L ${SHAREDIR}/shorewall-lite/init ]; then
|
if [ -L ${SHAREDIR}/$PRODUCT/init ]; then
|
||||||
if [ $HOST = openwrt ]; then
|
if [ $HOST = openwrt ]; then
|
||||||
if [ $configure -eq 1 ] && /etc/init.d/shorewall-lite enabled; then
|
if [ $configure -eq 1 ] && /etc/init.d/$PRODUCT enabled; then
|
||||||
/etc/init.d/shorewall-lite disable
|
/etc/init.d/$PRODUCT disable
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FIREWALL=$(readlink ${SHAREDIR}/shorewall-lite/init)
|
FIREWALL=$(readlink ${SHAREDIR}/$PRODUCT/init)
|
||||||
else
|
else
|
||||||
FIREWALL=$(readlink -m -q ${SHAREDIR}/shorewall-lite/init)
|
FIREWALL=$(readlink -m -q ${SHAREDIR}/$PRODUCT/init)
|
||||||
fi
|
fi
|
||||||
elif [ -n "$INITFILE" ]; then
|
elif [ -n "$INITFILE" ]; then
|
||||||
FIREWALL=${INITDIR}/${INITFILE}
|
FIREWALL=${INITDIR}/${INITFILE}
|
||||||
@ -184,7 +184,7 @@ fi
|
|||||||
if [ -f "$FIREWALL" ]; then
|
if [ -f "$FIREWALL" ]; then
|
||||||
if [ $configure -eq 1 ]; then
|
if [ $configure -eq 1 ]; then
|
||||||
if mywhich updaterc.d ; then
|
if mywhich updaterc.d ; then
|
||||||
updaterc.d shorewall-lite remove
|
updaterc.d $PRODUCT remove
|
||||||
elif mywhich insserv ; then
|
elif mywhich insserv ; then
|
||||||
insserv -r $FIREWALL
|
insserv -r $FIREWALL
|
||||||
elif mywhich chkconfig ; then
|
elif mywhich chkconfig ; then
|
||||||
@ -199,22 +199,22 @@ fi
|
|||||||
|
|
||||||
if [ -n "$SERVICEDIR" ]; then
|
if [ -n "$SERVICEDIR" ]; then
|
||||||
[ $configure -eq 1 ] && systemctl disable ${PRODUCT}
|
[ $configure -eq 1 ] && systemctl disable ${PRODUCT}
|
||||||
rm -f $SERVICEDIR/shorewall-lite.service
|
rm -f $SERVICEDIR/${PRODUCT}.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f ${SBINDIR}/shorewall-lite
|
rm -f ${SBINDIR}/$PRODUCT
|
||||||
|
|
||||||
rm -rf ${CONFDIR}/shorewall-lite
|
rm -rf ${CONFDIR}/$PRODUCT
|
||||||
rm -rf ${VARDIR}
|
rm -rf ${VARDIR}
|
||||||
rm -rf ${SHAREDIR}/shorewall-lite
|
rm -rf ${SHAREDIR}/$PRODUCT
|
||||||
rm -rf ${LIBEXECDIR}/shorewall-lite
|
rm -rf ${LIBEXECDIR}/$PRODUCT
|
||||||
rm -f ${CONFDIR}/logrotate.d/shorewall-lite
|
rm -f ${CONFDIR}/logrotate.d/$PRODUCT
|
||||||
rm -f ${SYSCONFDIR}/shorewall-lite
|
rm -f ${SYSCONFDIR}/$PRODUCT
|
||||||
|
|
||||||
if [ -n "${MANDIR}" ]; then
|
if [ -n "${MANDIR}" ]; then
|
||||||
rm -f ${MANDIR}/man5/shorewall-lite*
|
rm -f ${MANDIR}/man5/${PRODUCT}*
|
||||||
rm -f ${MANDIR}/man8/shorewall-lite*
|
rm -f ${MANDIR}/man8/${PRODUCT}*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Shorewall Lite Uninstalled"
|
echo "$Product Uninstalled"
|
||||||
|
|
||||||
|
@ -148,33 +148,33 @@ else
|
|||||||
usage 1
|
usage 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f ${SHAREDIR}/shorewall/version ]; then
|
if [ -f ${SHAREDIR}/$PRODUCT/version ]; then
|
||||||
INSTALLED_VERSION="$(cat ${SHAREDIR}/shorewall/version)"
|
INSTALLED_VERSION="$(cat ${SHAREDIR}/$PRODUCT/version)"
|
||||||
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
||||||
echo "WARNING: Shorewall Version $INSTALLED_VERSION is installed"
|
echo "WARNING: $Product Version $INSTALLED_VERSION is installed"
|
||||||
echo " and this is the $VERSION uninstaller."
|
echo " and this is the $VERSION uninstaller."
|
||||||
VERSION="$INSTALLED_VERSION"
|
VERSION="$INSTALLED_VERSION"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "WARNING: Shorewall Version $VERSION is not installed"
|
echo "WARNING: $Product Version $VERSION is not installed"
|
||||||
VERSION=""
|
VERSION=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "Uninstalling shorewall $VERSION"
|
echo "Uninstalling $Product $VERSION"
|
||||||
|
|
||||||
[ -n "$SANDBOX" ] && configure=0
|
[ -n "$SANDBOX" ] && configure=0
|
||||||
|
|
||||||
if [ $configure -eq 1 ]; then
|
if [ $configure -eq 1 ]; then
|
||||||
if qt iptables -L shorewall -n && [ ! -f ${SBINDIR}/shorewall-lite ]; then
|
if qt iptables -L shorewall -n && [ ! -f ${SBINDIR}/shorewall-lite ]; then
|
||||||
shorewall clear
|
$PRODUCT clear
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f ${SBINDIR}/shorewall
|
rm -f ${SBINDIR}/$PRODUCT
|
||||||
|
|
||||||
if [ -L ${SHAREDIR}/shorewall/init ]; then
|
if [ -L ${SHAREDIR}/$PRODUCT/init ]; then
|
||||||
FIREWALL=$(readlink -m -q ${SHAREDIR}/shorewall/init)
|
FIREWALL=$(readlink -m -q ${SHAREDIR}/$PRODUCT/init)
|
||||||
elif [ -n "$INITFILE" ]; then
|
elif [ -n "$INITFILE" ]; then
|
||||||
FIREWALL=${INITDIR}/${INITFILE}
|
FIREWALL=${INITDIR}/${INITFILE}
|
||||||
fi
|
fi
|
||||||
@ -198,33 +198,33 @@ if [ -z "${SERVICEDIR}" ]; then
|
|||||||
fi
|
fi
|
||||||
if [ -n "$SERVICEDIR" ]; then
|
if [ -n "$SERVICEDIR" ]; then
|
||||||
[ $configure -eq 1 ] && systemctl disable ${PRODUCT}
|
[ $configure -eq 1 ] && systemctl disable ${PRODUCT}
|
||||||
rm -f $SERVICEDIR/shorewall.service
|
rm -f $SERVICEDIR/${PRODUCT}.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf ${SHAREDIR}/shorewall/version
|
rm -rf ${SHAREDIR}/$PRODUCT/version
|
||||||
rm -rf ${CONFDIR}/shorewall
|
rm -rf ${CONFDIR}/$PRODUCT
|
||||||
|
|
||||||
if [ -n "$SYSCONFDIR" ]; then
|
if [ -n "$SYSCONFDIR" ]; then
|
||||||
[ -n "$SYSCONFFILE" ] && rm -f ${SYSCONFDIR}/${PRODUCT}
|
[ -n "$SYSCONFFILE" ] && rm -f ${SYSCONFDIR}/${PRODUCT}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf ${VARDIR}/shorewall
|
rm -rf ${VARDIR}/$PRODUCT
|
||||||
rm -rf ${PERLLIBDIR}/Shorewall/*
|
rm -rf ${PERLLIBDIR}/$Product/*
|
||||||
[ ${LIBEXECDIR} = ${SHAREDIR} ] || rm -rf ${LIBEXECDIR}/shorewall
|
[ ${LIBEXECDIR} = ${SHAREDIR} ] || rm -rf ${LIBEXECDIR}/$PRODUCT
|
||||||
rm -rf ${SHAREDIR}/shorewall/configfiles/
|
rm -rf ${SHAREDIR}/$PRODUCT/configfiles/
|
||||||
rm -rf ${SHAREDIR}/shorewall/Samples/
|
rm -rf ${SHAREDIR}/$PRODUCT/Samples/
|
||||||
rm -rf ${SHAREDIR}/shorewall/Shorewall/
|
rm -rf ${SHAREDIR}/$PRODUCT/$Product/
|
||||||
rm -f ${SHAREDIR}/shorewall/lib.cli-std
|
rm -f ${SHAREDIR}/$PRODUCT/lib.cli-std
|
||||||
rm -f ${SHAREDIR}/shorewall/lib.runtime
|
rm -f ${SHAREDIR}/$PRODUCT/lib.runtime
|
||||||
rm -f ${SHAREDIR}/shorewall/compiler.pl
|
rm -f ${SHAREDIR}/$PRODUCT/compiler.pl
|
||||||
rm -f ${SHAREDIR}/shorewall/prog.*
|
rm -f ${SHAREDIR}/$PRODUCT/prog.*
|
||||||
rm -f ${SHAREDIR}/shorewall/module*
|
rm -f ${SHAREDIR}/$PRODUCT/module*
|
||||||
rm -f ${SHAREDIR}/shorewall/helpers
|
rm -f ${SHAREDIR}/$PRODUCT/helpers
|
||||||
rm -f ${SHAREDIR}/shorewall/action*
|
rm -f ${SHAREDIR}/$PRODUCT/action*
|
||||||
rm -f ${SHAREDIR}/shorewall/macro.*
|
rm -f ${SHAREDIR}/$PRODUCT/macro.*
|
||||||
rm -f ${SHAREDIR}/shorewall/init
|
rm -f ${SHAREDIR}/$PRODUCT/init
|
||||||
|
|
||||||
for f in ${MANDIR}/man5/shorewall* ${MANDIR}/man8/shorewall*; do
|
for f in ${MANDIR}/man5/${PRODUCT}* ${MANDIR}/man8/${PRODUCT}*; do
|
||||||
case $f in
|
case $f in
|
||||||
shorewall6*|shorewall-lite*)
|
shorewall6*|shorewall-lite*)
|
||||||
;;
|
;;
|
||||||
@ -234,10 +234,10 @@ for f in ${MANDIR}/man5/shorewall* ${MANDIR}/man8/shorewall*; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
rm -f ${CONFDIR}/logrotate.d/shorewall
|
rm -f ${CONFDIR}/logrotate.d/$PRODUCT
|
||||||
|
|
||||||
[ -n "$SYSTEMD" ] && rm -f ${SYSTEMD}/shorewall.service
|
[ -n "$SYSTEMD" ] && rm -f ${SYSTEMD}/${PRODUCT}.service
|
||||||
|
|
||||||
echo "Shorewall Uninstalled"
|
echo "$Product Uninstalled"
|
||||||
|
|
||||||
|
|
||||||
|
@ -146,37 +146,37 @@ else
|
|||||||
usage 1
|
usage 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f ${SHAREDIR}/shorewall6-lite/version ]; then
|
if [ -f ${SHAREDIR}/$PRODUCT/version ]; then
|
||||||
INSTALLED_VERSION="$(cat ${SHAREDIR}/shorewall6-lite/version)"
|
INSTALLED_VERSION="$(cat ${SHAREDIR}/$PRODUCT/version)"
|
||||||
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
||||||
echo "WARNING: Shorewall6 Lite Version $INSTALLED_VERSION is installed"
|
echo "WARNING: $Product Version $INSTALLED_VERSION is installed"
|
||||||
echo " and this is the $VERSION uninstaller."
|
echo " and this is the $VERSION uninstaller."
|
||||||
VERSION="$INSTALLED_VERSION"
|
VERSION="$INSTALLED_VERSION"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "WARNING: Shorewall6 Lite Version $VERSION is not installed"
|
echo "WARNING: $Product Version $VERSION is not installed"
|
||||||
VERSION=""
|
VERSION=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Uninstalling Shorewall6 Lite $VERSION"
|
echo "Uninstalling $Product $VERSION"
|
||||||
|
|
||||||
[ -n "$SANDBOX" ] && configure=0
|
[ -n "$SANDBOX" ] && configure=0
|
||||||
|
|
||||||
if [ $configure -eq 1 ]; then
|
if [ $configure -eq 1 ]; then
|
||||||
if qt ip6tables -L shorewall -n && [ ! -f ${SBINDIR}/shorewall6 ]; then
|
if qt ip6tables -L shorewall -n && [ ! -f ${SBINDIR}/shorewall6 ]; then
|
||||||
${SBINDIR}/shorewall6-lite clear
|
${SBINDIR}/$PRODUCT clear
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f ${SHAREDIR}/shorewall6-lite/init ]; then
|
if [ -f ${SHAREDIR}/$PRODUCT/init ]; then
|
||||||
if [ $HOST = openwrt ]; then
|
if [ $HOST = openwrt ]; then
|
||||||
if [ $configure -eq 1 ] && /etc/init.d/shorewall6-lite enabled; then
|
if [ $configure -eq 1 ] && /etc/init.d/$PRODUCT enabled; then
|
||||||
/etc/init.d/shorewall6-lite disable
|
/etc/init.d/$PRODUCT disable
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FIREWALL=$(readlink ${SHAREDIR}/shorewall6-lite/init)
|
FIREWALL=$(readlink ${SHAREDIR}/$PRODUCT/init)
|
||||||
else
|
else
|
||||||
FIREWALL=$(readlink -m -q ${SHAREDIR}/shorewall6-lite/init)
|
FIREWALL=$(readlink -m -q ${SHAREDIR}/$PRODUCT/init)
|
||||||
fi
|
fi
|
||||||
elif [ -n "$INITFILE" ]; then
|
elif [ -n "$INITFILE" ]; then
|
||||||
FIREWALL=${INITDIR}/${INITFILE}
|
FIREWALL=${INITDIR}/${INITFILE}
|
||||||
@ -185,13 +185,13 @@ fi
|
|||||||
if [ -f "$FIREWALL" ]; then
|
if [ -f "$FIREWALL" ]; then
|
||||||
if [ $configure -eq 1 ]; then
|
if [ $configure -eq 1 ]; then
|
||||||
if mywhich updaterc.d ; then
|
if mywhich updaterc.d ; then
|
||||||
updaterc.d shorewall6-lite remove
|
updaterc.d $PRODUCT remove
|
||||||
elif mywhich insserv ; then
|
elif mywhich insserv ; then
|
||||||
insserv -r $FIREWALL
|
insserv -r $FIREWALL
|
||||||
elif mywhich chkconfig ; then
|
elif mywhich chkconfig ; then
|
||||||
chkconfig --del $(basename $FIREWALL)
|
chkconfig --del $(basename $FIREWALL)
|
||||||
elif mywhich systemctl ; then
|
elif mywhich systemctl ; then
|
||||||
systemctl disable shorewall6-lite
|
systemctl disable $PRODUCT
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -202,20 +202,20 @@ fi
|
|||||||
|
|
||||||
if [ -n "$SERVICEDIR" ]; then
|
if [ -n "$SERVICEDIR" ]; then
|
||||||
[ $configure -eq 1 ] && systemctl disable ${PRODUCT}
|
[ $configure -eq 1 ] && systemctl disable ${PRODUCT}
|
||||||
rm -f $SERVICEDIR/shorewall6-lite.service
|
rm -f $SERVICEDIR/${PRODUCT}.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f ${SBINDIR}/shorewall6-lite
|
rm -f ${SBINDIR}/$PRODUCT
|
||||||
rm -rf ${CONFDIR}/shorewall6-lite
|
rm -rf ${CONFDIR}/$PRODUCT
|
||||||
rm -rf ${VARDIR}
|
rm -rf ${VARDIR}
|
||||||
rm -rf ${SHAREDIR}/shorewall6-lite
|
rm -rf ${SHAREDIR}/$PRODUCT
|
||||||
rm -rf ${LIBEXECDIR}/shorewall6-lite
|
rm -rf ${LIBEXECDIR}/$PRODUCT
|
||||||
rm -f ${CONFDIR}/logrotate.d/shorewall6-lite
|
rm -f ${CONFDIR}/logrotate.d/$PRODUCT
|
||||||
rm -f ${SYSCONFDIR}/shorewall6-lite
|
rm -f ${SYSCONFDIR}/$PRODUCT
|
||||||
|
|
||||||
if [ -n "${MANDIR}" ]; then
|
if [ -n "${MANDIR}" ]; then
|
||||||
rm -f ${MANDIR}/man5/shorewall6-lite*
|
rm -f ${MANDIR}/man5/${PRODUCT}*
|
||||||
rm -f ${MANDIR}/man8/shorewall6-lite*
|
rm -f ${MANDIR}/man8/${PRODUCT}*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Shorewall6 Lite Uninstalled"
|
echo "$Product Uninstalled"
|
||||||
|
@ -147,30 +147,30 @@ else
|
|||||||
usage 1
|
usage 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f ${SHAREDIR}/shorewall6/version ]; then
|
if [ -f ${SHAREDIR}/$PRODUCT/version ]; then
|
||||||
INSTALLED_VERSION="$(cat ${SHAREDIR}/shorewall6/version)"
|
INSTALLED_VERSION="$(cat ${SHAREDIR}/$PRODUCT/version)"
|
||||||
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
||||||
echo "WARNING: Shorewall6 Version $INSTALLED_VERSION is installed"
|
echo "WARNING: $Product Version $INSTALLED_VERSION is installed"
|
||||||
echo " and this is the $VERSION uninstaller."
|
echo " and this is the $VERSION uninstaller."
|
||||||
VERSION="$INSTALLED_VERSION"
|
VERSION="$INSTALLED_VERSION"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "WARNING: Shorewall6 Version $VERSION is not installed"
|
echo "WARNING: $Product Version $VERSION is not installed"
|
||||||
VERSION=""
|
VERSION=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Uninstalling shorewall6 $VERSION"
|
echo "Uninstalling $Product $VERSION"
|
||||||
|
|
||||||
[ -n "$SANDBOX" ] && configure=0
|
[ -n "$SANDBOX" ] && configure=0
|
||||||
|
|
||||||
if [ $configure -eq 1 ]; then
|
if [ $configure -eq 1 ]; then
|
||||||
if qt ip6tables -L shorewall6 -n && [ ! -f ${SBINDIR}/shorewall6-lite ]; then
|
if qt ip6tables -L shorewall6 -n && [ ! -f ${SBINDIR}/shorewall6-lite ]; then
|
||||||
${SBINDIR}/shorewall6 clear
|
${SBINDIR}/$PRODUCT clear
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -L ${SHAREDIR}/shorewall6/init ]; then
|
if [ -L ${SHAREDIR}/$PRODUCT/init ]; then
|
||||||
FIREWALL=$(readlink -m -q ${SHAREDIR}/shorewall6/init)
|
FIREWALL=$(readlink -m -q ${SHAREDIR}/$PRODUCT/init)
|
||||||
elif [ -n "$INITFILE" ]; then
|
elif [ -n "$INITFILE" ]; then
|
||||||
FIREWALL=${INITDIR}/${INITFILE}
|
FIREWALL=${INITDIR}/${INITFILE}
|
||||||
fi
|
fi
|
||||||
@ -178,7 +178,7 @@ fi
|
|||||||
if [ -f "$FIREWALL" ]; then
|
if [ -f "$FIREWALL" ]; then
|
||||||
if [ $configure -eq 1 ]; then
|
if [ $configure -eq 1 ]; then
|
||||||
if mywhich updaterc.d ; then
|
if mywhich updaterc.d ; then
|
||||||
updaterc.d shorewall6 remove
|
updaterc.d $PRODUCT remove
|
||||||
elif mywhich insserv ; then
|
elif mywhich insserv ; then
|
||||||
insserv -r $FIREWALL
|
insserv -r $FIREWALL
|
||||||
elif mywhich chkconfig ; then
|
elif mywhich chkconfig ; then
|
||||||
@ -193,23 +193,23 @@ fi
|
|||||||
|
|
||||||
if [ -n "$SERVICEDIR" ]; then
|
if [ -n "$SERVICEDIR" ]; then
|
||||||
[ $configure -eq 1 ] && systemctl disable ${PRODUCT}
|
[ $configure -eq 1 ] && systemctl disable ${PRODUCT}
|
||||||
rm -f $SERVICEDIR/shorewall6.service
|
rm -f $SERVICEDIR/${PRODUCT}.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf ${SHAREDIR}/shorewall6/version
|
rm -rf ${SHAREDIR}/$PRODUCT/version
|
||||||
rm -rf ${CONFDIR}/shorewall6
|
rm -rf ${CONFDIR}/$PRODUCT
|
||||||
|
|
||||||
if [ -n "$SYSCONFDIR" ]; then
|
if [ -n "$SYSCONFDIR" ]; then
|
||||||
[ -n "$SYSCONFFILE" ] && rm -f ${SYSCONFDIR}/${PRODUCT}
|
[ -n "$SYSCONFFILE" ] && rm -f ${SYSCONFDIR}/${PRODUCT}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f ${SBINDIR}/shorewall6
|
rm -f ${SBINDIR}/$PRODUCT
|
||||||
rm -rf ${CONFDIR}/shorewall6
|
rm -rf ${CONFDIR}/$PRODUCT
|
||||||
rm -rf ${VARDIR}
|
rm -rf ${VARDIR}
|
||||||
rm -rf ${LIBEXECDIR}/shorewall6
|
rm -rf ${LIBEXECDIR}/$PRODUCT
|
||||||
rm -rf ${SHAREDIR}/shorewall6
|
rm -rf ${SHAREDIR}/$PRODUCT
|
||||||
|
|
||||||
for f in ${MANDIR}/man5/shorewall6* ${SHAREDIR}/man/man8/shorewall6*; do
|
for f in ${MANDIR}/man5/${PRODUCT}* ${SHAREDIR}/man/man8/${PRODUCT}*; do
|
||||||
case $f in
|
case $f in
|
||||||
shorewall6-lite*)
|
shorewall6-lite*)
|
||||||
;;
|
;;
|
||||||
@ -218,9 +218,9 @@ for f in ${MANDIR}/man5/shorewall6* ${SHAREDIR}/man/man8/shorewall6*; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
rm -f ${CONFDIR}/logrotate.d/shorewall6
|
rm -f ${CONFDIR}/logrotate.d/$PRODUCT
|
||||||
[ -n "$SYSTEMD" ] && rm -f ${SYSTEMD}/shorewall6.service
|
[ -n "$SYSTEMD" ] && rm -f ${SYSTEMD}/${PRODUCT}.service
|
||||||
|
|
||||||
echo "Shorewall6 Uninstalled"
|
echo "$Product Uninstalled"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user