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

DBA Dash Upgrades fix for encrypted configs #634

Merged
merged 2 commits into from
Jun 14, 2023

Conversation

DavidWiseman
Copy link
Collaborator

Get service name from Get-WmiObject instead of reading the config file. It might not be possible to read the config file if it's encrypted.
Add -Force to Stop-Process. Add a Stop-Process for DBADashService. In most cases Stop-Service should ensure the service isn't running - this won't work if it's run as a console app though.

Ensure upgrade isn't blocked if another user has a copy of app running.  -Force parameter will stop the process without confirmation.
It might not be possible to get the service name from the config file if the config has been encrypted.
Add a Stop-Process for DBADashService.  We should have a graceful shutdown with Stop-Service but this should ensure it's not running.  It might be running as a console app rather than installed as a service.
@DavidWiseman DavidWiseman merged commit b5dc62f into trimble-oss:main Jun 14, 2023
@DavidWiseman DavidWiseman deleted the DBADashUpgradeFix branch June 14, 2023 13:09
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.

1 participant