From 4e99dfe7502eaec2357a520bff692ca89c8c5f31 Mon Sep 17 00:00:00 2001 From: liuyu <> Date: Fri, 24 May 2024 16:50:54 +0800 Subject: [PATCH 1/2] fix: restart some pods to make sure the system recovery --- build/installer/change_ip.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build/installer/change_ip.sh b/build/installer/change_ip.sh index 7e79b62c..e1adc2fa 100644 --- a/build/installer/change_ip.sh +++ b/build/installer/change_ip.sh @@ -366,6 +366,10 @@ get_settings_status(){ $sh_c "${KUBECTL} get pod -n user-space-${username} -l 'app=settings' -o jsonpath='{.items[*].status.phase}'" } +get_all_user(){ + $sh_c "${KUBECTL} get user -o jsonpath='{.items[*].metadata.name}'" +} + check_together(){ local all=$@ @@ -429,6 +433,13 @@ main() { # check os auto-reloading log_info 'Waiting for Terminus reloading ...' + check_desktop + + for u in get_all_user ; do + $sh_c "${KUBECTL} rollout restart deploy -n user-space-$u edge-desktop" + $sh_c "${KUBECTL} rollout restart deploy -n user-space-$u headscale-server" + done + check_desktop log_info 'Success to change the Terminus IP address!' From 8bbb74d97fd8bfab7d5907e5f0e513d90a27bbb4 Mon Sep 17 00:00:00 2001 From: liuyu <> Date: Fri, 24 May 2024 17:02:46 +0800 Subject: [PATCH 2/2] bug fix --- build/installer/change_ip.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/installer/change_ip.sh b/build/installer/change_ip.sh index e1adc2fa..389563c0 100644 --- a/build/installer/change_ip.sh +++ b/build/installer/change_ip.sh @@ -435,7 +435,7 @@ main() { log_info 'Waiting for Terminus reloading ...' check_desktop - for u in get_all_user ; do + for u in $(get_all_user) ; do $sh_c "${KUBECTL} rollout restart deploy -n user-space-$u edge-desktop" $sh_c "${KUBECTL} rollout restart deploy -n user-space-$u headscale-server" done