From a183c2ea0335f29e44e3ac4ced67cc2fba4fd3ed Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 23 Mar 2023 22:35:00 +0100 Subject: [PATCH] Update 02-init_steps.sh --- nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh index 8b66010f0..a1d4a3682 100755 --- a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh +++ b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh @@ -15,7 +15,12 @@ done ###################### echo "Checking installation" -if [[ "$(occ -V)" == *"Composer autoloader not found"* ]]; then +(if [[ "$(occ -V)" == *"Composer autoloader not found"* ]]; then + touch /reinstall +fi) &> /dev/null + +if [ -f /reinstall ]; then + rm /reinstall bashio::log.fatal "Issue with installation detected, reinstallation will proceed" bashio::log.fatal "-------------------------------------------------------------." bashio::log.fatal " "