From f96f083c5c1ec66ff8431c566acd7150f9f2b938 Mon Sep 17 00:00:00 2001 From: Sylvain Manceau Date: Sat, 5 Aug 2023 06:26:37 +0000 Subject: [PATCH 1/3] Update postinstall.sh for NC25 --- scripts/postinstall.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh index 9eb90f5..89cc8ff 100755 --- a/scripts/postinstall.sh +++ b/scripts/postinstall.sh @@ -24,7 +24,6 @@ docker-compose exec -T --user www-data nextcloud php occ db:convert-filecache-bi # Nextcloud resets trusted_domains to localhost during installation, so we have to set it again docker-compose exec -T --user www-data nextcloud php occ config:system:set trusted_domains 0 --value="$DOMAIN" -docker-compose exec -T --user www-data nextcloud php occ app:disable theming # Set background jobs to use system cron docker-compose exec -T --user www-data nextcloud php /var/www/html/occ background:cron @@ -41,15 +40,15 @@ docker-compose exec -T --user www-data nextcloud php /var/www/html/occ maintenan echo "Enabling nextcloud apps" docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable calendar docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable notes -docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable user_backend_sql_raw +docker-compose exec -T --user www-data nextcloud php /var/www/html/occ -f app:enable user_backend_sql_raw docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable snappymail docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable quota_warning docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable contacts docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable news docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable email-recovery docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable ecloud-accounts -docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable ecloud-theme-helper -docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable ecloud-dashboard +docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable selfhost-theme-helper +docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable murena-dashboard docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable murena_launcher docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:disable firstrunwizard docker-compose exec -T --user www-data nextcloud php /var/www/html/occ config:app:set snappymail snappymail-autologin-with-email --value 1 @@ -58,7 +57,7 @@ docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:insta docker-compose exec -T --user www-data nextcloud php /var/www/html/occ config:system:set integrity.check.disabled --value='true' --type=boolean -docker-compose exec -T --user www-data nextcloud php /var/www/html/occ config:system:set defaultapp --value "ecloud-dashboard,files" +docker-compose exec -T --user www-data nextcloud php /var/www/html/occ config:system:set defaultapp --value "murena-dashboard,files" echo "Installing custom ecloud drop account plugin" # Add WELCOME_SECRET from .env file as a system config value, to be used by our ecloud-accounts plugin -- GitLab From f81c89e39468f987177938be50cac7070c641161 Mon Sep 17 00:00:00 2001 From: Sylvain Manceau Date: Sat, 5 Aug 2023 06:42:31 +0000 Subject: [PATCH 2/3] Update postinstall.sh for NC25 --- scripts/postinstall.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh index 89cc8ff..dc4cf2d 100755 --- a/scripts/postinstall.sh +++ b/scripts/postinstall.sh @@ -65,9 +65,14 @@ docker-compose exec -T --user www-data nextcloud php occ config:system:set e_wel # Add VHOST_ACCOUNTS from .env file as a system config value, to be used by our ecloud-accounts plugin docker-compose exec -T --user www-data nextcloud php occ config:system:set e_welcome_domain --value="welcome.$DOMAIN" +echo "Performing some Nextcloud administrative tasks" # Add missing indices docker-compose exec -T --user www-data nextcloud php /var/www/html/occ db:add-missing-indices +# Set default domain +docker exec -u www-data nextcloud /var/www/html/occ config:system:set main_domain --value $DOMAIN +docker exec -u www-data nextcloud /var/www/html/occ config:system:set legacy_domain --value $DOMAIN + docker-compose exec -T --user www-data nextcloud php occ maintenance:mode --off # define all default preview providers AND the video preview provider, now that ffmpeg is bundled in the image -- GitLab From 7eed2a7e5bd08dfaf776868fb59188627fa74ea8 Mon Sep 17 00:00:00 2001 From: Florent VINCENT Date: Mon, 21 Aug 2023 10:57:11 +0000 Subject: [PATCH 3/3] Update postinstall.sh to add back ecloud-theme-helper app --- scripts/postinstall.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh index dc4cf2d..115235e 100755 --- a/scripts/postinstall.sh +++ b/scripts/postinstall.sh @@ -47,6 +47,7 @@ docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enabl docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable news docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable email-recovery docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable ecloud-accounts +docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable ecloud-theme-helper docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable selfhost-theme-helper docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable murena-dashboard docker-compose exec -T --user www-data nextcloud php /var/www/html/occ app:enable murena_launcher -- GitLab