Skip to content

fix: support old VPN config names in post & pre install scripts #134

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

Merged
merged 2 commits into from
Apr 15, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Apr 14, 2025

One thing I noticed as part of my work on #121 is that our attempted fix introduced in #92 wasn't working as expected if the user had a VPN configuration installed before #86.

This PR fetches the unique name of the VPN service dynamically, as part of the script, such that the service is started and stopped regardless of whether the service is called "Coder" or the older "CoderVPN".

This also ensures we don't break it again if we ever change that name, such as to "Coder Connect" (I don't totally recall why it was set to "Coder", but I don't mind it)

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ethanndickson ethanndickson force-pushed the ethan/handle-vpn-config-name-change branch from 8750617 to 47d3dca Compare April 15, 2025 01:22
Copy link
Member Author

ethanndickson commented Apr 15, 2025

Merge activity

  • Apr 14, 9:29 PM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Apr 14, 9:29 PM EDT: A user merged this pull request with Graphite.

@ethanndickson ethanndickson merged commit 33da515 into main Apr 15, 2025
4 checks passed
@ethanndickson ethanndickson deleted the ethan/handle-vpn-config-name-change branch April 15, 2025 01:36
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

Successfully merging this pull request may close these issues.

2 participants