Source

iredmail / iRedMail / functions / packages_freebsd.sh

Diff from to

iRedMail/functions/packages_freebsd.sh

     ALL_PORTS="${ALL_PORTS} www/mod_wsgi www/webpy devel/py-Jinja2 net/py-netifaces"
 
     # Fail2ban.
-    #if [ X"${USE_FAIL2BAN}" == X"YES" ]; then
-    #    # python-ldap.
-    #    ALL_PORTS="${ALL_PORTS} security/py-fail2ban"
-    #    ENABLED_SERVICES="${ENABLED_SERVICES} fail2ban"
-    #fi
+    if [ X"${USE_FAIL2BAN}" == X"YES" ]; then
+        # python-ldap.
+        ALL_PORTS="${ALL_PORTS} security/py-fail2ban"
+        ENABLED_SERVICES="${ENABLED_SERVICES} fail2ban"
+    fi
 
     # Misc
     ALL_PORTS="${ALL_PORTS} sysutils/logwatch"
                 if [ X"$?" == X"0" ]; then
                     # Log used time
                     used_time="$(($(date +%s)-port_start_time))"
-                    echo "export status_fetch_port_${portname}='DONE'  # ${used_time} seconds, ~$((used_time/60)) minutes" >> ${STATUS_FILE}
+                    echo "export status_fetch_port_${portname}='DONE'  # ${used_time} seconds, ~$((used_time/60)) minute(s)" >> ${STATUS_FILE}
                 else
                     ECHO_ERROR "Tarballs were not downloaded correctly, please fix it manually and then re-execute iRedMail.sh."
                     exit 255
                         # Log used time
                         used_time="$(($(date +%s)-port_start_time))"
 
-                        echo "export status_install_port_${portname}='DONE'  # ${used_time} seconds, ~$((used_time/60)) minutes" >> ${STATUS_FILE}
+                        echo "export status_install_port_${portname}='DONE'  # ${used_time} seconds, ~$((used_time/60)) minute(s)" >> ${STATUS_FILE}
                     else
                         ECHO_ERROR "Port was not success installed, please fix it manually and then re-execute this script."
                         exit 255
 
     # Log and print used time
     all_used_time="$(($(date +%s)-start_time))"
-    ECHO_INFO "Total time of ports compiling: ${all_used_time} seconds (~ $((all_used_time/60)) minutes)"
+    ECHO_INFO "Total time of ports compiling: ${all_used_time} seconds, ~$((all_used_time/60)) minute(s)"
 
     echo 'export status_install_all="DONE"' >> ${STATUS_FILE}
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.