diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-11-22 13:03:18 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-11-22 13:03:18 -0300 |
commit | ba0b8906199404b7b00cfeac91bff3036b8692e8 (patch) | |
tree | 77d6dbaf822d1a66046f76c6698ec9d0f61a9bcd /pcr/vuurmuur/vuurmuur.install | |
parent | adc549e8519824da803230cee62bfd7d808df989 (diff) | |
parent | f97ff910471fb3ae2c8ea69befecaae8cbf6dbea (diff) | |
download | abslibre-ba0b8906199404b7b00cfeac91bff3036b8692e8.tar.gz abslibre-ba0b8906199404b7b00cfeac91bff3036b8692e8.tar.bz2 abslibre-ba0b8906199404b7b00cfeac91bff3036b8692e8.zip |
Merge branch 'master' of ssh://gparabola/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 +} |