generate-ldif: add a minifirewall service when /etc/default/minifirewall exists

This commit is contained in:
Ludovic Poujol 2018-04-19 15:48:52 +02:00
parent 92bb60495d
commit e37b3f569a
2 changed files with 14 additions and 0 deletions

View File

@ -16,6 +16,7 @@ The **patch** part changes incrementally at each release.
* evolinux-base: fail2ban is not enabled by default
* evolinux-users: refactoring of the SSH configuration
* mysql-oracle: copy evolinux config files in mysql.cond.d
* generate-ldif: add a minifirewall service when /etc/default/minifirewall exists
### Fixed

View File

@ -200,6 +200,19 @@ ServiceType: monitoring
EOT
fi
# minifirewall
if [ -f "/etc/default/minifirewall" ]; then
cat <<EOT >> "${ldif_file}"
dn: ServiceName=minifirewall,${computer_dn}
NagiosEnabled: TRUE
objectClass: EvoService
ServiceName: minifirewall
ServiceType: firewall
ServiceVersion: minifirewall
EOT
fi
# Postfix
postfix_version=$(get_pkg_version postfix)
if [ -n "${postfix_version}" ]; then