refactor: Update apt-cacher setup script to use IP address instead of hostname for the proxy server
This commit is contained in:
parent
c3c623f1d1
commit
653ee01ec8
|
@ -1,2 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
IP="192.168.179.107"
|
||||||
|
|
||||||
|
# Ping the IP address to check if it is reachable
|
||||||
|
if ping -c 1 $IP &> /dev/null
|
||||||
|
then
|
||||||
echo 'Acquire::http { Proxy "http://192.168.179.107:3142"; }' | sudo tee -a /etc/apt/apt.conf.d/proxy
|
echo 'Acquire::http { Proxy "http://192.168.179.107:3142"; }' | sudo tee -a /etc/apt/apt.conf.d/proxy
|
||||||
|
else
|
||||||
|
echo "IP $IP is not reachable. Exiting."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
snap install postman
|
|
@ -7,3 +7,6 @@ chmod +x ./gui/spotify.sh
|
||||||
|
|
||||||
chmod +x ./gui/bluemail.sh
|
chmod +x ./gui/bluemail.sh
|
||||||
./gui/bluemail.sh
|
./gui/bluemail.sh
|
||||||
|
|
||||||
|
chmod +x ./gui/postman.sh
|
||||||
|
./gui/postman.sh
|
Loading…
Reference in New Issue