Forráskód Böngészése

Moved IP to variable

Simon Royer 2 éve
szülő
commit
fbd170f546
1 módosított fájl, 3 hozzáadás és 1 törlés
  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