From a285f786261fa4b7bcd832e69fec6560d19b72cc Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 6 Jan 2026 14:22:26 -0300 Subject: [PATCH] nextcloud: restore app files for maintenance job --- scripts/nextcloud-maintenance.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/nextcloud-maintenance.sh b/scripts/nextcloud-maintenance.sh index dc37c3d7..d5266743 100755 --- a/scripts/nextcloud-maintenance.sh +++ b/scripts/nextcloud-maintenance.sh @@ -15,6 +15,14 @@ run_occ() { log() { echo "[$(date -Is)] $*"; } +log "Ensuring Nextcloud app files are present" +if [[ ! -d /var/www/html/lib && -d /usr/src/nextcloud/lib ]]; then + rsync -a --delete \ + --exclude config \ + --exclude data \ + /usr/src/nextcloud/ /var/www/html/ +fi + log "Applying Atlas theming" run_occ config:app:set theming name --value "Atlas Cloud" run_occ config:app:set theming slogan --value "Unified access to Atlas services"