mirror of
https://github.com/angristan/openvpn-install.git
synced 2026-08-11 09:08:13 +02:00
Fix interactive install initialization (#1511)
The legacy `interactive` command bypassed `cmd_install`, so it skipped configuration validation and derived gateway initialization. This left gateway values empty in Unbound DNS and firewall configuration. Route new interactive installations through `cmd_install --interactive` so all install entry points use the same flow. Add focused coverage that checks validation and gateway preparation happen before installation. This addresses the root cause reported in #1509.
This commit is contained in:
@@ -68,8 +68,9 @@ RUN chmod +x /opt/openvpn-install.sh
|
||||
# Copy test scripts
|
||||
COPY test/server-entrypoint.sh /entrypoint.sh
|
||||
COPY test/validate-output.sh /opt/test/validate-output.sh
|
||||
COPY test/interactive-install-routing.sh /opt/test/interactive-install-routing.sh
|
||||
COPY test/local-network-detection.sh /opt/test/local-network-detection.sh
|
||||
RUN chmod +x /entrypoint.sh /opt/test/validate-output.sh /opt/test/local-network-detection.sh
|
||||
RUN chmod +x /entrypoint.sh /opt/test/validate-output.sh /opt/test/interactive-install-routing.sh /opt/test/local-network-detection.sh
|
||||
|
||||
# Create systemd service for the test script
|
||||
# PassEnvironment passes Docker env vars (-e) from PID 1 to the service
|
||||
|
||||
Reference in New Issue
Block a user