From 37e8e691e29dfe83a19e84291eed1c76b3c7e581 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 dc37c3d..d526674 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"