nextcloud: ensure data dir and perms
This commit is contained in:
parent
d4f1d01b9c
commit
46884bdd0c
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user