Skip to content

Navigation Menu

Sign in
Sign up

Add automated maintenance #540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Root-Core wants to merge 1 commit into linuxserver:master
base: master
Choose a base branch
Loading
from Root-Core:auto_maintenance
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions readme-vars.yml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ init_diagram: |
"nextcloud:latest" <- Base Images
# changelog
changelogs:
- {date: "01.06.26:", desc: "Automated `occ` maintenance tasks on container start. Non time critical cron tasks run daily between 01:00 and 05:00 UTC."}
- {date: "10.07.25:", desc: "Rebase to Alpine 3.22."}
- {date: "12.02.25:", desc: "Rebase to Alpine 3.21."}
- {date: "09.01.25:", desc: "Fix uploading large files. Existing users should update their nginx confs."}
Expand Down
7 changes: 7 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,16 @@ if occ config:system:get installed >/dev/null 2>&1; then
if ! occ config:system:get datadirectory >/dev/null 2>&1; then
occ config:system:set datadirectory --value='/data'
fi
if ! occ config:system:get maintenance_window_start >/dev/null 2>&1; then
occ config:system:set maintenance_window_start --value=1 --type=integer
fi
if ! occ config:system:get upgrade.disable-web >/dev/null 2>&1; then
occ config:system:set upgrade.disable-web --value=true --type=boolean
fi

# Run maintenance steps, this also fixes warnings in the admin panel
occ db:add-missing-indices
occ maintenance:repair --include-expensive
else
echo "After completing the web-based installer, restart the Nextcloud container to apply default memory caching and transactional file locking configurations."
echo "Alternatively, you can apply your own configurations by editing /config/www/nextcloud/config/config.php following the documentation:"
Expand Down

AltStyle によって変換されたページ (->オリジナル) /