This commit is contained in:
temasky
2020-07-31 12:45:56 +00:00
commit 5d419635ed
306 changed files with 26949 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
#!/usr/bin/env bash
# Author: Zhang Huangbin <zhb _at_ iredmail.org>
# -------------------------------------------
# Install all optional components.
# -------------------------------------------
optional_components()
{
# iRedAPD.
check_status_before_run iredapd_setup
# iRedAdmin.
[ X"${USE_IREDADMIN}" == X'YES' ] && \
check_status_before_run iredadmin_setup
# Roundcubemail.
[ X"${USE_ROUNDCUBE}" == X'YES' ] && \
check_status_before_run rcm_setup
# SOGo
[ X"${USE_SOGO}" == X'YES' ] && \
check_status_before_run sogo_setup
# Fail2ban.
[ X"${USE_FAIL2BAN}" == X'YES' -a X"${DISTRO}" != X'FREEBSD' ] && \
check_status_before_run fail2ban_setup
# netdata.
[ X"${USE_NETDATA}" == X'YES' ] && \
check_status_before_run netdata_setup
}