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:
teastep 2004-08-27 16:19:08 +00:00
parent d2a9e5b8e0
commit c973603ddd

View File

@ -539,7 +539,8 @@ fi
#
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
run_install -o $OWNER -g $GROUP -m 0644 default.debian /etc/default/shorewall
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 #
########################################################################" > /etc/shorewall/startup_disabled
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
#
# Report Success
#