aquaballoon

sh - dialog: inputbox

Nov 30th, 2011
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. dialog --title "APT Cacher Server" --inputbox "Enter IP of APT-cacher Server: \neg) 124.158.108.139" 8 40 2> IP
  4.  
  5. OUT=$(cat IP)
  6.  
  7. echo 'Acquire::http::Proxy "http://'${OUT}':3142/apt-cacher/";' > /etc/apt/apt.conf.d/01proxy
  8.  
  9. cat /etc/apt/apt.conf.d/01proxy
  10.  
  11. rm IP
  12.  
Advertisement
Add Comment
Please, Sign In to add comment