Add force exec

This commit is contained in:
soraefir
2026-05-10 21:40:49 +02:00
parent 09539b5866
commit 8165bf6935

View File

@@ -67,7 +67,7 @@ in {
sleep 2
done
INSTALLED=$($OCC status --output=json | grep -o '"installed":false')
INSTALLED=$($OCC status --output=json | grep -o '"installed":true')
if [ -z "$INSTALLED" ]; then
echo "Running first-time setup..."
@@ -75,7 +75,8 @@ in {
--admin-user "$DEFAULT_ADMIN_USERNAME" \
--admin-pass "$DEFAULT_ADMIN_PASSWORD"
fi
if [ -z "$INSTALLED" ]; then
if [ -z "$INSTALLED" ] || [ -f "/tmp/force-nextcloud-setup" ]; then
rm -f "/tmp/force-nextcloud-setup"
echo "Applying Settings..."
$OCC config:system:set default_phone_region --value="CH"