From 3289c4c5fbdd6e1d4f96bf6a58e8775ae217b66d Mon Sep 17 00:00:00 2001 From: Jarred Wilson Date: Tue, 15 Oct 2024 15:20:27 +0000 Subject: [PATCH] fix:[#275] move conn check to flathub from cloudflare --- vanilla_first_setup/utils/processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vanilla_first_setup/utils/processor.py b/vanilla_first_setup/utils/processor.py index 88ff8bae..a245978e 100644 --- a/vanilla_first_setup/utils/processor.py +++ b/vanilla_first_setup/utils/processor.py @@ -76,7 +76,7 @@ def get_setup_commands(log_path, pre_run, post_run, commands): f.write("exit 0\n") # connection test - f.write("wget -q --spider cloudflare.com\n") + f.write("wget -q --spider flathub.org\n") f.write("if [ $? != 0 ]; then\n") f.write("echo 'No internet connection!'\n") f.write("exit 1\n") @@ -92,7 +92,7 @@ def get_setup_commands(log_path, pre_run, post_run, commands): f.write("echo '# do not edit its content manually' >> " + next_boot_script_path + "\n") # wait for connection - f.write(f"echo 'while [ \"$(wget -q --spider cloudflare.com; echo $?)\" != \"0\" ]; do' >> {next_boot_script_path}\n") + f.write(f"echo 'while [ \"$(wget -q --spider flathub.org; echo $?)\" != \"0\" ]; do' >> {next_boot_script_path}\n") f.write(f"echo 'echo Waiting for internet connection...' >> {next_boot_script_path}\n") f.write(f"echo 'sleep 5' >> {next_boot_script_path}\n") f.write(f"echo 'done' >> {next_boot_script_path}\n")