Malin a2a1ba3c37 fix: run purevpn-cli as non-root vpnuser with real sudo
purevpn-cli is designed to run as non-root and calls sudo internally for
privileged VPN setup. Running as root skips this flow and crashes.

- Add vpnuser (home=/root so login tokens are shared with root setup)
- Configure sudoers secure_path to include /opt/purevpn-cli/bin
- Wrap all purevpn-cli calls in entrypoint with pvpn() helper (su vpnuser)
- Keep iptables/danted running as root

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 18:44:03 +01:00
2026-03-11 09:45:42 +01:00
2026-03-11 09:45:42 +01:00
2026-03-11 09:45:42 +01:00
Description
No description provided
92 KiB
Languages
Shell 73.7%
Dockerfile 26.3%