From fd80dad83b9e10fa7b23a6be9a6a33f5ab9ac0f3 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Tue, 18 May 2021 14:54:36 +0000 Subject: [PATCH] 3.3.4-debian-10-r14 release --- bitnami/phpbb/3/debian-10/Dockerfile | 2 +- .../opt/bitnami/scripts/libmysqlclient.sh | 17 +++++++++++++++++ bitnami/phpbb/README.md | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/bitnami/phpbb/3/debian-10/Dockerfile b/bitnami/phpbb/3/debian-10/Dockerfile index b32558ff0bfc..bbd44f36aa7f 100644 --- a/bitnami/phpbb/3/debian-10/Dockerfile +++ b/bitnami/phpbb/3/debian-10/Dockerfile @@ -29,7 +29,7 @@ ENV ALLOW_EMPTY_PASSWORD="no" \ APACHE_HTTPS_PORT_NUMBER="" \ APACHE_HTTP_PORT_NUMBER="" \ BITNAMI_APP_NAME="phpbb" \ - BITNAMI_IMAGE_VERSION="3.3.4-debian-10-r13" \ + BITNAMI_IMAGE_VERSION="3.3.4-debian-10-r14" \ MARIADB_HOST="mariadb" \ MARIADB_PORT_NUMBER="3306" \ MARIADB_ROOT_PASSWORD="" \ diff --git a/bitnami/phpbb/3/debian-10/rootfs/opt/bitnami/scripts/libmysqlclient.sh b/bitnami/phpbb/3/debian-10/rootfs/opt/bitnami/scripts/libmysqlclient.sh index d89be47282f2..43979b4d54e1 100644 --- a/bitnami/phpbb/3/debian-10/rootfs/opt/bitnami/scripts/libmysqlclient.sh +++ b/bitnami/phpbb/3/debian-10/rootfs/opt/bitnami/scripts/libmysqlclient.sh @@ -398,10 +398,27 @@ wait_for_mysql_access() { # None ######################### mysql_stop() { + local -r retries=25 + local -r sleep_time=5 + + are_db_files_locked() { + local return_value=0 + read -r -a db_files <<< "$(find "$DB_DATA_DIR" -regex "^.*ibdata[0-9]+" -print0 -o -regex "^.*ib_logfile[0-9]+" -print0 | xargs -0)" + for f in "${db_files[@]}"; do + debug_execute lsof -w "$f" && return_value=1 + done + return $return_value + } + ! is_mysql_running && return info "Stopping $DB_FLAVOR" stop_service_using_pid "$DB_PID_FILE" + debug "Waiting for $DB_FLAVOR to unlock db files" + if ! retry_while are_db_files_locked "$retries" "$sleep_time"; then + error "$DB_FLAVOR failed to stop" + return 1 + fi } ######################## diff --git a/bitnami/phpbb/README.md b/bitnami/phpbb/README.md index 42df7cba770a..e7ef7822a732 100644 --- a/bitnami/phpbb/README.md +++ b/bitnami/phpbb/README.md @@ -42,7 +42,7 @@ Non-root container images add an extra layer of security and are generally recom Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/). -* [`3`, `3-debian-10`, `3.3.4`, `3.3.4-debian-10-r13`, `latest` (3/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-phpbb/blob/3.3.4-debian-10-r13/3/debian-10/Dockerfile) +* [`3`, `3-debian-10`, `3.3.4`, `3.3.4-debian-10-r14`, `latest` (3/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-phpbb/blob/3.3.4-debian-10-r14/3/debian-10/Dockerfile) Subscribe to project updates by watching the [bitnami/phpbb GitHub repo](https://github.com/bitnami/bitnami-docker-phpbb).