refactor: Update apt-cacher setup script to use IP address instead of hostname for the proxy server
This commit is contained in:
		| @@ -1,2 +1,12 @@ | ||||
| #!/bin/bash | ||||
| echo 'Acquire::http { Proxy "http://192.168.179.107:3142"; }' | sudo tee -a /etc/apt/apt.conf.d/proxy | ||||
|  | ||||
| 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 | ||||
| else | ||||
|     echo "IP $IP is not reachable. Exiting." | ||||
|     exit 1 | ||||
| fi | ||||
|   | ||||
							
								
								
									
										1
									
								
								gui/postman.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										1
									
								
								gui/postman.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1 @@ | ||||
| snap install postman | ||||
| @@ -6,4 +6,7 @@ chmod +x ./gui/spotify.sh | ||||
| ./gui/spotify.sh | ||||
|  | ||||
| chmod +x ./gui/bluemail.sh | ||||
| ./gui/bluemail.sh | ||||
| ./gui/bluemail.sh | ||||
|  | ||||
| chmod +x ./gui/postman.sh | ||||
| ./gui/postman.sh | ||||
		Reference in New Issue
	
	Block a user