nextcloud: reset external app config and force reinstall
This commit is contained in:
parent
59b719da54
commit
77ce04c562
@ -140,12 +140,23 @@ spec:
|
||||
chown -R 33:33 "${target}"
|
||||
su -s /bin/sh www-data -c "php /var/www/html/occ app:enable --force ${app}" || true
|
||||
}
|
||||
reset_external_config() {
|
||||
su -s /bin/sh www-data -c "php /var/www/html/occ app:remove external" || true
|
||||
su -s /bin/sh www-data -c "php /var/www/html/occ config:app:delete external jwt_token_privkey_es256" || true
|
||||
su -s /bin/sh www-data -c "php /var/www/html/occ config:app:delete external jwt_token_pubkey_es256" || true
|
||||
su -s /bin/sh www-data -c "php /var/www/html/occ config:app:delete external jwt_token_privkey_ed25519" || true
|
||||
su -s /bin/sh www-data -c "php /var/www/html/occ config:app:delete external jwt_token_pubkey_ed25519" || true
|
||||
}
|
||||
ensure_app() {
|
||||
app="$1"
|
||||
target="/var/www/html/custom_apps/${app}"
|
||||
rm -rf "${target}"
|
||||
su -s /bin/sh www-data -c "php /var/www/html/occ app:remove ${app}" || true
|
||||
su -s /bin/sh www-data -c "php /var/www/html/occ app:install --force ${app}" || true
|
||||
su -s /bin/sh www-data -c "php /var/www/html/occ app:enable --force ${app}" || true
|
||||
}
|
||||
ensure_mime_defaults
|
||||
reset_external_config
|
||||
install_app external https://github.com/nextcloud-releases/external/releases/download/v5.4.1/external-v5.4.1.tar.gz
|
||||
install_app mail https://github.com/nextcloud-releases/mail/releases/download/v3.7.24/mail-stable3.7.tar.gz
|
||||
ensure_app oidc_login
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user