diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-11-23 16:00:21 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-11-23 16:00:21 -0200 |
commit | 13e7da299d6c1d313b32309f5737d887212b7d4c (patch) | |
tree | d4f484d0a730e8f66f3412d1535ff561adf7dea9 /pcr/vuurmuur/vuurmuur.install | |
parent | e0755bc7fa7cd05b992a9988a9d38587e169f42d (diff) | |
parent | e61f24169547faea84a6b813212bac030feaacd1 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/vuurmuur/vuurmuur.install')
-rw-r--r-- | pcr/vuurmuur/vuurmuur.install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pcr/vuurmuur/vuurmuur.install b/pcr/vuurmuur/vuurmuur.install new file mode 100644 index 000000000..0f596b8c9 --- /dev/null +++ b/pcr/vuurmuur/vuurmuur.install @@ -0,0 +1,27 @@ +post_install() { + if [[ ! -d /etc/vuurmuur/textdir ]]; then + # copy default firewall setup + cp -R /usr/share/vuurmuur/textdir /etc/vuurmuur/ + + # set permissions and ownership + chown -R root:root /etc/vuurmuur + chmod -R o=rwX,go= /etc/vuurmuur + chown -R root:root /var/log/vuurmuur + chmod -R o=rwX,go= /var/log/vuurmuur + + echo + echo "Default firewall setup has been installed in /etc/vuurmuur/textdir" + echo + echo "You can now setup your network topology and firewall rules using vuurmuur_conf" + echo "Don't forget to add 'vuurmuur' in /etc/rc.conf" + echo + echo "Usefull documentation can be found at http://www.vuurmuur.org" + echo + fi +} + +post_remove () { + echo + echo "Your firewall setup has been left unchanged in /etc/vuurmuur/textdir" + echo +} |