We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d36737c + 36c6c77 commit 6487606Copy full SHA for 6487606
hack/local-up-cluster.sh
@@ -411,7 +411,7 @@ cleanup()
411
fi
412
413
# Cleanup dmesg running in the background
414
- [[ -n "${DMESG_PID-}" ]] && kill "$DMESG_PID"
+ [[ -n "${DMESG_PID-}" ]] && sudo kill "$DMESG_PID" 2>/dev/null
415
416
exit 0
417
}
@@ -812,8 +812,10 @@ function wait_coredns_available(){
812
echo "6" | sudo tee /proc/sys/kernel/printk
813
814
# loop through and grab all things in dmesg
815
- dmesg > "${LOG_DIR}/dmesg.log"
816
- dmesg -w --human >> "${LOG_DIR}/dmesg.log" &
+ # shellcheck disable=SC2024
+ sudo dmesg > "${LOG_DIR}/dmesg.log"
817
818
+ sudo dmesg -w --human >> "${LOG_DIR}/dmesg.log" &
819
DMESG_PID=$!
820
821
0 commit comments