Explorar o código

Moved IP to variable

Simon Royer %!s(int64=2) %!d(string=hai) anos
pai
achega
fbd170f546
Modificáronse 1 ficheiros con 3 adicións e 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