Commits

Zhang Huangbin committed 7d130a9

Disable Policyd integration in iRedAdmin on Ubuntu 11.10.

Comments (0)

Files changed (1)

iRedMail/functions/iredadmin.sh

         -e "/\[policyd\]/,/\[/ s#\(^passwd =\).*#\1 ${POLICYD_DB_PASSWD}#" \
         settings.ini
 
+
+    # Ubuntu 11.10 uses Policyd-2 which is not yet supported in iRedAdmin.
+    if [ X"${DISTRO_CODENAME}" == X"oneiric" ]; then
+        sed -i.tmp -e "/\[policyd\]/,/\[/ s#\(^enabled =\).*#\1 False#" settings.ini
+
     # Section [amavisd].
     ECHO_DEBUG "Configure Amavisd related settings."
     sed -i.tmp \