Explorar el Código

Moved IP to variable

Simon Royer hace 2 años
padre
commit
fbd170f546
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      ifconfig.sh

+ 3 - 1
ifconfig.sh

@@ -1,4 +1,6 @@
 #!/bin/bash
 
+vpngateway='172.16.255.1'
+
 curl ifconfig.me > /root/scripts/ip.pub
-scp /root/scripts/ip.pub root@172.16.255.1:/root/home.ip
+scp /root/scripts/ip.pub root@$vpngateway:/root/home.ip