Skip to content

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

Merged
ethanndickson merged 2 commits into
mainfrom
ethan/handle-vpn-config-name-change
Apr 15, 2025
Merged

fix: support old VPN config names in post & pre install scripts#134
ethanndickson merged 2 commits into
mainfrom
ethan/handle-vpn-config-name-change

Conversation

@ethanndickson
Copy link
Copy Markdown
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
Copy Markdown
Member Author

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

Comment thread pkgbuild/scripts/preinstall Outdated
Comment thread pkgbuild/scripts/postinstall
@ethanndickson ethanndickson force-pushed the ethan/handle-vpn-config-name-change branch from 8750617 to 47d3dca Compare April 15, 2025 01:22
Copy link
Copy Markdown
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
@ethanndickson ethanndickson self-assigned this May 23, 2025
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