Skip to content

Commit

Permalink
updated proxy string
Browse files Browse the repository at this point in the history
  • Loading branch information
vikashkaushik01 committed Sep 2, 2024
1 parent 6af7371 commit 35a1d54
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions nirmata_test/nirmata_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 35a1d54

Please sign in to comment.