From 35a1d5485a1c83c261dd975f5d6e31c965022dc4 Mon Sep 17 00:00:00 2001 From: Vikash Kaushik Date: Mon, 2 Sep 2024 14:14:48 +0530 Subject: [PATCH] updated proxy string --- nirmata_test/nirmata_test.sh | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/nirmata_test/nirmata_test.sh b/nirmata_test/nirmata_test.sh index c74b025..69e1389 100755 --- a/nirmata_test/nirmata_test.sh +++ b/nirmata_test/nirmata_test.sh @@ -820,11 +820,11 @@ check_proxy_in_file() { } # Check Docker service configuration -echo "Checking Docker service configuration..." +echo "Checking Docker proxy configuration..." check_proxy_in_file "/usr/lib/systemd/system/docker.service" # Check containerd service configuration -echo "Checking containerd service configuration..." +echo "Checking containerd proxy configuration..." check_proxy_in_file "/usr/lib/systemd/system/containerd.service" # Check node level proxy settings @@ -1082,7 +1082,7 @@ check_kubernetes_processes() { for process in "${processes[@]}"; do if pgrep -f "$process" > /dev/null; then processes_found=true - warn "Process '$process' is running. Check the proxy configuration and remove any unnecessary settings manually." + warn "Process '$process' is running. Verify it by running 'ps -ef | grep $process' and remove it using 'kill -9 $process'." fi done @@ -1215,15 +1215,6 @@ fi warn "Cannot access the repository or pull the image." fi - # Test for docker proxy - proxy_conf="/etc/systemd/system/docker.service.d/http-proxy.conf" - - if [ -f "$proxy_conf" ]; then - good "Docker is configured to use the proxy." - else - warn "Docker proxy configuration not found." - fi - echo "Checking for swap" if [[ $(swapon -s | wc -l) -gt 1 ]] ; then if [[ $fix_issues -eq 0 ]];then