Commits

Zhang Huangbin committed 3ce4189

Code cleanup.

  • Participants
  • Parent commits b93fca3

Comments (0)

Files changed (2)

File iRedMail/functions/apache_php.sh

 Disallow: /iredadmin
 EOF
 
-    if [ X"${DISTRO}" != X'OPENBSD' ]; then
-        add_postfix_alias ${HTTPD_USER} ${SYS_ROOT_USER}
-    fi
+    # Add alias for Apache daemon user
+    add_postfix_alias ${HTTPD_USER} ${SYS_ROOT_USER}
 
     if [ X"${DISTRO}" == X'OPENBSD' ]; then
         # Enable httpd.

File iRedMail/functions/optional_components.sh

         check_status_before_run fail2ban_config
 
     # Awstats.
-    [ X"${USE_AWSTATS}" == X"YES" ] && \
+    [ X"${USE_AWSTATS}" == X"YES" -a X"${DISTRO}" != X'OPENBSD' ] && \
         check_status_before_run awstats_config_basic && \
         check_status_before_run awstats_config_weblog && \
         check_status_before_run awstats_config_maillog && \