diff --git a/ldap_demo/Dockerfile b/ldap_demo/Dockerfile index 1c30ab4..add03b8 100644 --- a/ldap_demo/Dockerfile +++ b/ldap_demo/Dockerfile @@ -1,4 +1,4 @@ -FROM osixia/openldap:1.2.3 +FROM osixia/openldap:1.2.4 COPY bootstrap /container/service/slapd/assets/config/bootstrap RUN rm /container/service/slapd/assets/config/bootstrap/schema/mmc/mail.schema diff --git a/version.sh b/version.sh index e5ddf58..4bc1754 100755 --- a/version.sh +++ b/version.sh @@ -16,6 +16,8 @@ if [ -e ./.env ]; then sed -i '/SASLAUTHD_LDAP_FILTER/s/^/#/g' "$tmpfile" # shellcheck disable=SC1090 source "$tmpfile" +else + tmpfile="undefined" fi case $component in @@ -54,4 +56,6 @@ filename=$(h5ai_query "$component") currentVersion=$(version_from_filename "$filename") echo "$currentVersion" -rm "$tmpfile" +if [ -e "$tmpfile" ]; then + rm "$tmpfile" +fi