Skip to content
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.

Fix converge error caused by overwriting runnig bin file #70

Merged
merged 3 commits into from
May 2, 2015

Conversation

fulloflilies
Copy link
Contributor

This PR fixes problem happens during second and further converge, trying to overwrite monit binary file while the file is already opened and not writable.

The binary install recipe now detects following 3 cases and behaves differently:
case 1) Binary file not found
the recipe download binary and installs it
case 2) Binary file found and different version need to be installed
the recipe delete the binary file as there is case it's running and not writable, and download and installs new one
case 3) Binary file found and same version as the one to be installed
skips download and installation

@phlipper phlipper mentioned this pull request May 2, 2015
@phlipper phlipper merged commit 1f90c6f into phlipper:master May 2, 2015
@phlipper
Copy link
Owner

phlipper commented May 2, 2015

@fulloflilies thank you very much for this! I have fixed up the test failures and merged this in as #71.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants