[dd-ctl] Unify for loops for apps that have to be disabled

GON-3874-DD-moodle
Evilham 2022-11-24 16:38:03 +01:00
parent c38bf4caba
commit c0c5ee79fc
No known key found for this signature in database
GPG Key ID: AE3EE30D970886BF
1 changed files with 2 additions and 10 deletions

12
dd-ctl
View File

@ -328,9 +328,9 @@ setup_nextcloud(){
docker exec -u www-data dd-apps-nextcloud-app php occ --no-warnings config:system:set skeletondirectory --value=''
# Disable certain NextCloud apps
for app in firstrunwizard recommendations dashboard; do
for app in firstrunwizard recommendations dashboard circles; do
docker exec -i -u www-data dd-apps-nextcloud-app sh -s <<-EOF
php occ --no-warnings app:disable "${app}"
php occ --no-warnings app:disable "${app}" || true
EOF
done
@ -356,14 +356,6 @@ setup_nextcloud(){
EOF
fi
# Disable in Nextcloud
# shellcheck disable=SC2043 # We currently only force-disable one app
for app in circles; do
docker exec -i -u www-data dd-apps-nextcloud-app sh -s <<-EOF
php occ --no-warnings app:disable "${app}" || true
EOF
done
# Temporary patch while upstream lands our changes
# See: https://github.com/nextcloud/mail/pull/6908
for f in appinfo/info.xml lib/Command/UpdateAccount.php lib/Db/MailAccountMapper.php; do