wknapik / openvpn-unroot

Run OpenVPN without root privileges
MIT License
31 stars 7 forks source link

What is "foo.conf?" #6

Open neurodiverseEsoteric opened 6 years ago

neurodiverseEsoteric commented 6 years ago

It appears that the script wants me to create the file foo.conf before anything else, otherwise this error happens:

sed: can't read /etc/openvpn/client/foo.conf: No such file or directory
/bin/openvpn-unroot: line 168: `sed -nr "s/^\s*${key}\s+(\S+)\s*.*/\1/p" "${opt[old_config_file]}"' returned 2
/bin/openvpn-unroot: line 150: `first_line() {' returned 1
/bin/openvpn-unroot: line 204: `} | first_line' returned 1
/bin/openvpn-unroot: line 473: `dev_type="$(get_dev_type)"' returned 1

...And making a empty foo.conf file didn't help:


/sbin/openvpn-unroot: line 150: `first_line() {' returned 1
/sbin/openvpn-unroot: line 204: `} | first_line' returned 1
/sbin/openvpn-unroot: line 473: `dev_type="$(get_dev_type)"' returned 1
muellerjoel commented 3 years ago

I have the same error on Arch Linux too...