Parcourir la source

Moved IP to variable

Simon Royer il y a 2 ans
Parent
commit
fbd170f546
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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