mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Update
This commit is contained in:
parent
5601d50dc3
commit
d15dd45369
1 changed files with 7 additions and 0 deletions
7
user-bin/fix-vpn-config
Executable file
7
user-bin/fix-vpn-config
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
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/down \/etc\/openvpn\/scripts\/update-systemd-resolved/down \/etc\/openvpn\/scripts\/update-systemd-resolved\ndown-pre/g" $file; done
|
||||
# The next line is for stablishing the autentication using a file. Change .secret to the name of your file.
|
||||
for file in *; do sed -i 's/auth-user-pass/auth-user-pass .secret/g' $file; done
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue