forked from extern/shorewall_code
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
|
||||
|
||||
echo "$Product script installed in ${DESTDIR}${INITDIR}/${INITFILE}"
|
||||
echo "Shorewall-init script installed in ${DESTDIR}${INITDIR}/${INITFILE}"
|
||||
fi
|
||||
#
|
||||
# Install the .service file
|
||||
@ -265,6 +265,7 @@ if [ -n "$SYSTEMD" ]; then
|
||||
chmod 755 ${DESTDIR}/sbin
|
||||
fi
|
||||
run_install $OWNERSHIP -m 700 shorewall-init ${DESTDIR}/sbin/shorewall-init
|
||||
echo "CLI installed as ${DESTDIR}/sbin/shorewall-init"
|
||||
fi
|
||||
|
||||
#
|
||||
|
@ -23,12 +23,6 @@
|
||||
# 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
|
||||
if [ -f "/etc/sysconfig/shorewall-init" ]; then
|
||||
. /etc/sysconfig/shorewall-init
|
||||
|
Loading…
Reference in New Issue
Block a user