Skip to content

Commit 522fd4a

Browse files
authored
Merge pull request #117 from LibreCodeCoop/fix/incomplete-setup-dont-stop-a-new-setup
fix: incomplete setup don't stop a new setup
2 parents 56660f4 + c0b67e7 commit 522fd4a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.docker/scripts/nextcloud-entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ php /var/www/scripts/wait-for-db.php
2424

2525
install_cmd_status=0
2626

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+
2733
# Set configurations, if needed
2834
if [[ ! -f "config/config.php" && ${AUTOINSTALL} -eq 1 ]]; then
2935
echo "⌛️ Starting installation ..."

0 commit comments

Comments
 (0)