mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 09:47:51 +02:00
Shorewall-init tweaks
1) Remove root check 2) Fix/add progress messages in the installer. Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
67a1438a41
commit
36d4fff7b2
@ -252,7 +252,7 @@ if [ -n "$INITFILE" ]; then
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo "$Product script installed in ${DESTDIR}${INITDIR}/${INITFILE}"
|
echo "Shorewall-init script installed in ${DESTDIR}${INITDIR}/${INITFILE}"
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
# Install the .service file
|
# Install the .service file
|
||||||
@ -265,6 +265,7 @@ if [ -n "$SYSTEMD" ]; then
|
|||||||
chmod 755 ${DESTDIR}/sbin
|
chmod 755 ${DESTDIR}/sbin
|
||||||
fi
|
fi
|
||||||
run_install $OWNERSHIP -m 700 shorewall-init ${DESTDIR}/sbin/shorewall-init
|
run_install $OWNERSHIP -m 700 shorewall-init ${DESTDIR}/sbin/shorewall-init
|
||||||
|
echo "CLI installed as ${DESTDIR}/sbin/shorewall-init"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -23,12 +23,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
#
|
#
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
if [ "$(id -u)" != "0" ]
|
|
||||||
then
|
|
||||||
echo "You must be root to start, stop or restart \"Shorewall \"."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# check if shorewall-init is configured or not
|
# check if shorewall-init is configured or not
|
||||||
if [ -f "/etc/sysconfig/shorewall-init" ]; then
|
if [ -f "/etc/sysconfig/shorewall-init" ]; then
|
||||||
. /etc/sysconfig/shorewall-init
|
. /etc/sysconfig/shorewall-init
|
||||||
|
Loading…
x
Reference in New Issue
Block a user