We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f7ba24 commit fd0d170Copy full SHA for fd0d170
1 file changed
services/openldap-pre-upgrade/startup.sh
@@ -9,6 +9,11 @@ container log level eq trace && set -x
9
# shellcheck disable=SC1091
10
source "/container/services/openldap-upgrade/assets/scripts/common.sh"
11
12
+if [ ! -f "${OPENLDAP_UPGRADE_CONF_VERSION_FILE}" ]; then
13
+ container log info "No existing OpenLDAP version file found, skipping pre-upgrade"
14
+ exit 0
15
+fi
16
+
17
OPENLDAP_VERSION_COMPARABLE=$(extract_version "${OPENLDAP_VERSION}")
18
CURRENT_CONF_VERSION_COMPARABLE=$(extract_version "$(cat "${OPENLDAP_UPGRADE_CONF_VERSION_FILE}")")
19
0 commit comments