There was an error while loading. Please reload this page.
2 parents 56660f4 + c0b67e7 commit 522fd4aCopy full SHA for 522fd4a
1 file changed
.docker/scripts/nextcloud-entrypoint.sh
@@ -24,6 +24,12 @@ php /var/www/scripts/wait-for-db.php
24
25
install_cmd_status=0
26
27
+# An empty or incomplete config.php (interrupted install) must not block a new installation
28
+if [[ -f "config/config.php" ]] && ! grep -qE "'installed'[[:space:]]*=>[[:space:]]*true" config/config.php; then
29
+ echo "⚠️ Found an empty or incomplete config/config.php. Removing it to install from scratch."
30
+ rm -f config/config.php
31
+fi
32
+
33
# Set configurations, if needed
34
if [[ ! -f "config/config.php" && ${AUTOINSTALL} -eq 1 ]]; then
35
echo "⌛️ Starting installation ..."
0 commit comments