Skip to content

Commit bbd69ac

Browse files
moving k3s-uninstall to background due to environment override
1 parent ab8029b commit bbd69ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/big_red_button.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ function remove_k3s() {
122122
fi
123123

124124
info_log "...k3s found. Uninstalling..."
125-
[[ -f "/usr/local/bin/k3s-uninstall.sh" ]] && run_a_script "/usr/local/bin/k3s-uninstall.sh"
125+
if [[ -f "/usr/local/bin/k3s-uninstall.sh" ]]; then
126+
run_a_script "/usr/local/bin/k3s-uninstall.sh" k3s_uninstall_pid --background
127+
wait $((k3s_uninstall_pid))
128+
fi
126129

127130
info_log "...k3s successfully uninstalled"
128131

0 commit comments

Comments
 (0)