Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.ovpn symlinks are replaced inside /config/openvpn/ #206

Open
hitchan opened this issue Oct 1, 2020 · 0 comments
Open

.ovpn symlinks are replaced inside /config/openvpn/ #206

hitchan opened this issue Oct 1, 2020 · 0 comments

Comments

@hitchan
Copy link

hitchan commented Oct 1, 2020

I use symlinks from within the config directory to quickly change VPN servers as required.

Prior to starting the container, i have the following setup.

lrwxrwxrwx 1 nobody users 30 Oct  1 09:34 active.ovpn -> ../vpn-conf/active/active.ovpn
lrwxrwxrwx 1 nobody users 34 Oct  1 08:03 ca.rsa.2048.crt -> ../vpn-conf/active/ca.rsa.2048.crt
-rwxrwxr-x 1 nobody users 20 Oct  1 09:24 credentials.conf*
lrwxrwxrwx 1 nobody users 35 Oct  1 08:03 crl.rsa.2048.pem -> ../vpn-conf/active/crl.rsa.2048.pem

When i start the container, active.ovpn symlink is replaced by an actual file with the same name.

-rw-rw-r-- 1 nobody users 3169 Oct  1 09:24 active.ovpn
lrwxrwxrwx 1 nobody users   34 Oct  1 08:03 ca.rsa.2048.crt -> ../vpn-conf/active/ca.rsa.2048.crt
-rwxrwxr-x 1 nobody users   20 Oct  1 09:24 credentials.conf*
lrwxrwxrwx 1 nobody users   35 Oct  1 08:03 crl.rsa.2048.pem -> ../vpn-conf/active/crl.rsa.2048.pem

I'm not sure exactly where this is occurring within the scripts. I suspected dos2unix.sh but that only has a conditional mv operation which i believe would replace the file. I have confirmed my .ovpn files are unix safe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant