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

exit bash API-download script immediately if sensor is already running #174

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joekohlsdorf
Copy link

Makes the script do nothing if the sensor is already installed and running, previously the script would fail when run more than once.

This makes the script suitable to be used from AWS SSM State Manager in a simple RunShellScript without using a more complex Distributor Package setup.

Note:
This is still not truly idempotent, if the agent is installed but not running the script will still fail because it tries to install a package which is already installed.

Makes the script do nothing if the sensor is already installed and running.
This makes it more suitable to run from AWS SSM State Manager.
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