X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=vpn-client-connect;h=c3c9e8a9f7930cfa6604f7b7d1067bbda7c2408e;hb=0b6d44c7f3d567e0a26138509c8a24cb57c69b50;hp=8c6cebea75986c5d394850d1c1bce4bef81ad971;hpb=4c39892ef8fa3379ce36adbe870723324cb71cea;p=distro-setup 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 ]] ;;