From 71237cabb6c1aca2df8e947dc45a64bc2ba529a2 Mon Sep 17 00:00:00 2001 From: Evilham Date: Wed, 3 Aug 2022 10:29:25 +0200 Subject: [PATCH] [dd-ctl] Remove some docker calls --- dd-ctl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dd-ctl b/dd-ctl index 87da8e0..6152d97 100755 --- a/dd-ctl +++ b/dd-ctl @@ -655,9 +655,11 @@ configure_nextcloud_logo(){ local instance_id=$(docker exec -u www-data dd-apps-nextcloud-app php occ config:system:get instanceid) local cachebuster=$(docker exec -u www-data dd-apps-nextcloud-app php occ config:app:get theming cachebuster) docker exec -u www-data dd-apps-nextcloud-app mkdir -p /var/www/html/data/appdata_$instance_id/theming/images - docker cp custom/img/logo.png dd-apps-nextcloud-app:/var/www/html/data/appdata_$instance_id/theming/images/logo - docker cp custom/img/background.png dd-apps-nextcloud-app:/var/www/html/data/appdata_$instance_id/theming/images/background - docker exec dd-apps-nextcloud-app chown www-data:www-data /var/www/html/data/appdata_$instance_id/theming/images/{logo,background} + nc_logo="${DATA_FOLDER}/nextcloud/appdata_$instance_id/theming/images/logo" + nc_background="${DATA_FOLDER}/nextcloud/appdata_$instance_id/theming/images/background" + cp custom/img/logo.png "${nc_logo}" + cp custom/img/background.png "${nc_background}" + chown 82:82 "${nc_logo}" "${nc_background}" docker exec -u www-data dd-apps-nextcloud-app php occ config:app:set theming logoMime --value="image/png" docker exec -u www-data dd-apps-nextcloud-app php occ config:app:set theming backgroundMime --value="image/png" docker exec -u www-data dd-apps-nextcloud-app php occ config:app:set theming cachebuster --value="$(expr $cachebuster + 1 )"