X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=vpn-client-connect;h=c3c9e8a9f7930cfa6604f7b7d1067bbda7c2408e;hp=8c6cebea75986c5d394850d1c1bce4bef81ad971;hb=8a6b446c7e336596af614c853e1c6177e55a7983;hpb=4c39892ef8fa3379ce36adbe870723324cb71cea diff --git a/vpn-client-connect b/vpn-client-connect index 8c6cebe..c3c9e8a 100755 --- a/vpn-client-connect +++ b/vpn-client-connect @@ -8,7 +8,7 @@ x="$(readlink -f "$BASH_SOURCE")"; cd ${x%/*} # directory of this file # see lan-dyn-dns-update. this is the corresponding script for on connect/disconnect from vpn d=/p/ovpn-ssh -ssh_cmd="ssh -F$d/.config -i$d/id_rsa root@wrt.b8.nz cedit ovpn-$X509_0_CN /etc/hosts" +ssh_cmd="ssh -F$d/.config -i$d/home root@wrt.b8.nz cedit ovpn-$X509_0_CN /etc/hosts" case $script_type in client-connect) $ssh_cmd <<<"$ifconfig_pool_remote_ip $X509_0_CN"|| [[ $? == 1 ]] ;;