Source

iredmail / iRedMail / conf / policy_server

Diff from to

iRedMail/conf/policy_server

 export USE_POLICYD='YES'
 
 # Use Policyd-2.x (cluebringer).
-if [ X"${DISTRO}" == X'RHEL' -o X"${DISTRO}" == X'SUSE' ]; then
+if [ X"${DISTRO}" == X'RHEL' ]; then
     if [ X"${BACKEND}" == X'PGSQL' ]; then
         export USE_CLUEBRINGER='YES'
         export USE_POLICYD='NO'
     fi
+elif [ X"${DISTRO}" == X'SUSE' ]; then
+    if [ X"${DISTRO_CODENAME}" == X'mantis' ]; then
+        # Use cluebringer in openSUSE-12.2 with PostgreSQL backend
+        if [ X"${BACKEND}" == X'PGSQL' ]; then
+            export USE_CLUEBRINGER='YES'
+            export USE_POLICYD='NO'
+        fi
+    else
+        # Use cluebringer in openSUSE-12.3 and later releases.
+        export USE_CLUEBRINGER='YES'
+        export USE_POLICYD='NO'
+    fi
 elif [ X"${DISTRO}" == X'DEBIAN' ]; then
     if [ X"${DISTRO_CODENAME}" == X'wheezy' ]; then
         export USE_CLUEBRINGER='YES'