Created
February 3, 2023 19:24
-
-
Save likair/dfd780dd277a5eb95fee4c24ba4ec2c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Proxy Environment variables:" | |
env | grep -i proxy | |
if [ $? -ne 0 ]; then | |
echo "No proxy settings found." | |
fi | |
echo '---------------------------------------------------------' | |
echo "apt proxy settings:" | |
cat /etc/apt/apt.conf.d/proxy 2> /dev/null | |
if [ $? -ne 0 ]; then | |
echo "No apt proxy settings found." | |
fi | |
echo '---------------------------------------------------------' | |
echo "Gnome proxy settings:" | |
gsettings get org.gnome.system.proxy mode | |
if [ $? -ne 0 ]; then | |
echo "No gnome proxy settings found." | |
fi | |
echo '---------------------------------------------------------' | |
echo "Docker proxy settings:" | |
cat /etc/systemd/system/docker.service.d/http-proxy.conf 2> /dev/null | |
if [ $? -ne 0 ]; then | |
echo "No docker proxy settings found." | |
fi | |
echo '---------------------------------------------------------' | |
echo "Environment variables:" | |
cat /etc/environment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment