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

fix: Linux ./install.sh script fails when used for updating backrest #226

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

eknoes
Copy link
Contributor

@eknoes eknoes commented Apr 17, 2024

When backrest is already installed, and the script is used for updating (as with #187), the install might fail:
If backrest is already running, the cp in the install script fails with "Text file is busy". If the service is already existing, maybe containing customized configuration, it is overwritten. This PR fixes both.

Check if the systemd service is already running, and stop it before installing. Do not overwrite the existing backrest service file.

Check if the systemd service is already running, and stop it before installing. Do not overwrite the existing backrest service file.
@garethgeorge
Copy link
Owner

Nice!

Changes look great and the explicit checks are definitely an improvement. Thanks for the PR.

@garethgeorge garethgeorge merged commit be09303 into garethgeorge:main Apr 17, 2024
@garethgeorge
Copy link
Owner

Hi, I'm evaluating relicensing Backrest as AGPL-3.0 . Thanks for contributing this fix!

I'm wondering if you'd be willing to retroactively sign a CLA? Or grant more specific permission to retain the copyright for your PRs but relicense your changes in the codebase under AGPL-3.0 .

I've become aware of a few SAAS looking at selling Backrest which goes philosophically against what I created it for (well they're welcome to -- but their platforms should be OSS and self-hostable re: the same freedoms Backrest provides!).

@eknoes
Copy link
Contributor Author

eknoes commented Sep 5, 2024

Sure, I just signed the CLA

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