From d7dc6bdea60e258a22a98a72114cef275e3cd6bc Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 6 Feb 2023 18:32:14 +0100 Subject: [PATCH] try to fix initial install Signed-off-by: Simon L --- Containers/nextcloud/entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index d3155789..65abe55b 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -211,7 +211,10 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then touch "$NEXTCLOUD_DATA_DIR/install.failed" exit 1 fi - + + # Try to force generation of appdata dir: + php /var/www/html/occ maintenance:repair + max_retries=10 try=0 while [ -z "$(find "$NEXTCLOUD_DATA_DIR/" -maxdepth 1 -mindepth 1 -type d -name "appdata_*")" ] && [ "$try" -lt "$max_retries" ]; do