diff --git a/user-bin/fix-vpn-config b/user-bin/fix-vpn-config index 54da42f..8ff8578 100755 --- a/user-bin/fix-vpn-config +++ b/user-bin/fix-vpn-config @@ -1,5 +1,6 @@ #!/usr/bin/env sh +for file in *; do mv $file ${file/protonvpn.com.udp.ovpn/conf}; done for file in *; do sed -i 's/\/etc\/openvpn\/update-resolv-conf/\/etc\/openvpn\/scripts\/update-systemd-resolved/g' $file; done for file in *; do sed -i "s/script-security 2/script-security 2\nsetenv PATH \/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin/g" $file; done for file in *; do sed -i "s/up \/etc\/openvpn\/scripts\/update-systemd-resolved/up \/etc\/openvpn\/scripts\/update-systemd-resolved\nup-restart/g" $file; done