nextcloud: ensure oidc/mail/external apps installed
This commit is contained in:
parent
39d57613db
commit
5fe584cc5f
@ -63,6 +63,13 @@ spec:
|
||||
chown 33:33 /var/www/html/config/config.php || true
|
||||
chown -R 33:33 /var/www/html/data || true
|
||||
fi
|
||||
installed="$(su -s /bin/sh www-data -c "php /var/www/html/occ status" 2>/dev/null | awk '/installed:/{print $3}' || true)"
|
||||
if [ "${installed}" = "true" ]; then
|
||||
for app in oidc_login external mail; do
|
||||
su -s /bin/sh www-data -c "php /var/www/html/occ app:install ${app}" || true
|
||||
su -s /bin/sh www-data -c "php /var/www/html/occ app:enable ${app}" || true
|
||||
done
|
||||
fi
|
||||
env:
|
||||
- name: POSTGRES_HOST
|
||||
value: postgres-service.postgres.svc.cluster.local
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user