From 9b7d9c27f42173ef3b94c679483c597be3b0f732 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 2 Oct 2022 11:33:43 +0200 Subject: [PATCH] nextcloud: Re-order test docker instructions --- packages/nextcloud/test/helper.dart | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/nextcloud/test/helper.dart b/packages/nextcloud/test/helper.dart index 7172259d..acf4ec97 100644 --- a/packages/nextcloud/test/helper.dart +++ b/packages/nextcloud/test/helper.dart @@ -246,21 +246,21 @@ class TestDockerHelper { 'RUN chown -R www-data:www-data .', 'USER www-data', 'RUN ./occ maintenance:install --admin-user admin --admin-pass $defaultPassword --admin-email admin@example.com', + // Required to workaround restrictions for localhost and http only push proxies + 'RUN ./occ config:system:set allow_local_remote_servers --value=true', + 'RUN sed -i "s/localhost/host.docker.internal/" /usr/src/nextcloud/apps/notifications/lib/Controller/PushController.php', + 'ADD overlay /usr/src/nextcloud/', generateCreateTestUserInstruction(), - if (users != null) ...[ - for (final user in users) ...[ - generateCreateUserInstruction(user), - ], - ], if (apps != null) ...[ for (final app in apps) ...[ generateInstallAppInstruction(app), ], ], - // Required to workaround restrictions for localhost and http only push proxies - 'RUN ./occ config:system:set allow_local_remote_servers --value=true', - 'RUN sed -i "s/localhost/host.docker.internal/" /usr/src/nextcloud/apps/notifications/lib/Controller/PushController.php', - 'ADD overlay /usr/src/nextcloud/', + if (users != null) ...[ + for (final user in users) ...[ + generateCreateUserInstruction(user), + ], + ], '', ];