nextcloud: ensure data dir and perms

This commit is contained in:
Brad Stein 2026-01-06 14:43:18 -03:00
parent d4f1d01b9c
commit 46884bdd0c
2 changed files with 3 additions and 1 deletions

View File

@ -24,9 +24,10 @@ if [[ ! -d /var/www/html/lib && -d /usr/src/nextcloud/lib ]]; then
fi
log "Ensuring Nextcloud permissions"
mkdir -p /var/www/html/data
chown 33:33 /var/www/html || true
chmod 775 /var/www/html || true
chown -R 33:33 /var/www/html/apps /var/www/html/custom_apps 2>/dev/null || true
chown -R 33:33 /var/www/html/apps /var/www/html/custom_apps /var/www/html/data /var/www/html/config 2>/dev/null || true
log "Applying Atlas theming"
run_occ config:app:set theming name --value "Atlas Cloud"

View File

@ -31,6 +31,7 @@ spec:
if [ ! -s /var/www/html/config/config.php ]; then
rm -f /var/www/html/config/config.php || true
fi
mkdir -p /var/www/html/data || true
chown 33:33 /var/www/html || true
chmod 775 /var/www/html || true
chown -R 33:33 /var/www/html/config || true