Merge pull request #7534 from nextcloud/enh/7533/fix-daily-backup-script

daily-backup.sh: continue with script if `wasStartButtonClicked=true` was found
This commit is contained in:
Simon L. 2026-02-02 10:27:38 +01:00 committed by GitHub
commit 06090a2677
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,7 @@ echo "Daily backup script has started"
# Check if initial configuration has been done, otherwise this script should do nothing.
CONFIG_FILE=/mnt/docker-aio-config/data/configuration.json
if ! [ -f "$CONFIG_FILE" ] || ! grep -q "wasStartButtonClicked.*1" "$CONFIG_FILE"; then
if ! [ -f "$CONFIG_FILE" ] || ! grep -q "wasStartButtonClicked.*true" "$CONFIG_FILE"; then
echo "Initial configuration via AIO interface not done yet. Exiting..."
exit 0
fi