mirror of
https://gitlab.com/shorewall/code.git
synced 2025-05-20 08:01:13 +02:00
Make install.sh install /etc/default/shorewall on Debian if it doesn't exist
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1584 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
d2a9e5b8e0
commit
c973603ddd
@ -539,7 +539,8 @@ fi
|
|||||||
#
|
#
|
||||||
install_file_with_backup firewall ${PREFIX}/usr/share/shorewall/firewall 0544
|
install_file_with_backup firewall ${PREFIX}/usr/share/shorewall/firewall 0544
|
||||||
|
|
||||||
if [ -z "$PREFIX" -a -n "$first_install" ]; then
|
if [ -z "$PREFIX" ]; then
|
||||||
|
if -n "$first_install" ]; then
|
||||||
if [ -n "$DEBIAN" ]; then
|
if [ -n "$DEBIAN" ]; then
|
||||||
run_install -o $OWNER -g $GROUP -m 0644 default.debian /etc/default/shorewall
|
run_install -o $OWNER -g $GROUP -m 0644 default.debian /etc/default/shorewall
|
||||||
ln -s ../init.d/shorewall /etc/rcS.d/S40shorewall
|
ln -s ../init.d/shorewall /etc/rcS.d/S40shorewall
|
||||||
@ -581,8 +582,10 @@ if [ -z "$PREFIX" -a -n "$first_install" ]; then
|
|||||||
# REMOVE THIS FILE AFTER YOU HAVE CONFIGURED SHOREWALL #
|
# REMOVE THIS FILE AFTER YOU HAVE CONFIGURED SHOREWALL #
|
||||||
########################################################################" > /etc/shorewall/startup_disabled
|
########################################################################" > /etc/shorewall/startup_disabled
|
||||||
fi
|
fi
|
||||||
|
elif [ -n "$DEBIAN" -a ! -f /etc/default/shorewall ]; then
|
||||||
|
run_install -o $OWNER -g $GROUP -m 0644 default.debian /etc/default/shorewall
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Report Success
|
# Report Success
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user