Przeglądaj źródła

Merge branch 'sistason-feature/allow-own-replication-config' into release-1.5.0

Bertrand Gouny 4 lat temu
rodzic
commit
73595a94a7
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      image/service/slapd/startup.sh

+ 7 - 0
image/service/slapd/startup.sh

@@ -482,6 +482,13 @@ EOF
       [[ -f "$WAS_STARTED_WITH_REPLICATION" ]] && rm -f "$WAS_STARTED_WITH_REPLICATION"
       echo "export PREVIOUS_HOSTNAME=${HOSTNAME}" > $WAS_STARTED_WITH_REPLICATION
 
+    elif [ "${LDAP_REPLICATION,,}" == "own" ]; then
+
+      log-helper info "Not touching replication config..."
+
+      [[ -f "$WAS_STARTED_WITH_REPLICATION" ]] && rm -f "$WAS_STARTED_WITH_REPLICATION"
+      echo "export PREVIOUS_HOSTNAME=${HOSTNAME}" > $WAS_STARTED_WITH_REPLICATION
+
     else
 
       log-helper info "Disable replication config..."