A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(installer): pull images before the first start (#3248)
Hampus4e730832c704
diff --git a/fluxer_docs/src/installer/install.ps1 b/fluxer_docs/src/installer/install.ps1index 35197e8b5..781ffc6f7 100644--- a/fluxer_docs/src/installer/install.ps1+++ b/fluxer_docs/src/installer/install.ps1@@ -2267,10 +2267,14 @@ function Invoke-FluxerInstall {exit 0}+ Write-FluxerLine 'Pulling images. The first start pulls eighteen of them, which takes several minutes.'+ if ((Invoke-FluxerDocker @('compose', 'pull')) -ne 0) {+ Stop-Fluxer 'docker compose pull failed. Nothing was started.' $FluxerExitDownload+ }if ((Invoke-FluxerDocker @('compose', 'up', '-d')) -ne 0) {Stop-Fluxer 'docker compose up -d failed.' $FluxerExitUnhealthy}- Wait-FluxerStack 'Waiting for the stack to report healthy. The first start pulls images and takes several minutes.'+ Wait-FluxerStack 'Waiting for the stack to report healthy.'$readyOrigin = Get-FluxerPublicOrigin $envPathif ($readyOrigin.Length -eq 0) {$readyOrigin = "https://$domainValue"diff --git a/fluxer_docs/src/installer/install.sh b/fluxer_docs/src/installer/install.shindex 32d53feaf..ebd1dbe3e 100644--- a/fluxer_docs/src/installer/install.sh+++ b/fluxer_docs/src/installer/install.sh@@ -2245,11 +2245,15 @@ if [ "$opt_no_start" -eq 1 ]; thenexit 0fi+fluxer_say 'Pulling images. The first start pulls eighteen of them, which takes several minutes.'+if ! $fluxer_engine compose pull; then+ fluxer_fail 4 "$fluxer_engine compose pull failed in $opt_dir. Nothing was started."+fifluxer_say 'Starting the stack.'if ! $fluxer_engine compose up -d; thenfluxer_fail 6 "$fluxer_engine compose up -d failed in $opt_dir. Read $fluxer_engine compose logs there."fi-fluxer_say 'Waiting for every service to report ready. This takes several minutes on the first start, which pulls eighteen images.'+fluxer_say 'Waiting for every service to report ready.'if ! fluxer_wait_ready; thenfluxer_fail 6 "The stack is not ready after $FLUXER_READY_TIMEOUT seconds. $(fluxer_not_ready_detail)Read $fluxer_engine compose logs in $opt_dir."