From c6584f26f2536321edc3c016307eee6d1f94165f Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 15 May 2005 23:23:03 +0000 Subject: [PATCH] Update config files for /etc/shorewall/routes git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2122 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall2/install.sh | 10 ++++++++++ Shorewall2/shorewall.spec | 1 + 2 files changed, 11 insertions(+) diff --git a/Shorewall2/install.sh b/Shorewall2/install.sh index 3c96259d9..5ee41a25a 100755 --- a/Shorewall2/install.sh +++ b/Shorewall2/install.sh @@ -408,6 +408,16 @@ else echo "Blacklist file installed as ${PREFIX}/etc/shorewall/blacklist" fi # +# Install the Routes file +# +if [ -f ${PREFIX}/etc/shorewall/routes ]; then + backup_file /etc/shorewall/routes +else + run_install $OWNERSHIP -m 0600 routes ${PREFIX}/etc/shorewall/routes + echo + echo "Routes file installed as ${PREFIX}/etc/shorewall/blacklist" +fi +# # Backup and remove the whitelist file # if [ -f ${PREFIX}/etc/shorewall/whitelist ]; then diff --git a/Shorewall2/shorewall.spec b/Shorewall2/shorewall.spec index bd6030d15..ebc57636c 100644 --- a/Shorewall2/shorewall.spec +++ b/Shorewall2/shorewall.spec @@ -95,6 +95,7 @@ fi %attr(0600,root,root) %config(noreplace) /etc/shorewall/actions %attr(0600,root,root) %config(noreplace) /etc/shorewall/continue %attr(0600,root,root) %config(noreplace) /etc/shorewall/started +%attr(0600,root,root) %config(noreplace) /etc/shorewall/routes %attr(0544,root,root) /sbin/shorewall