-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
file-install modules: Don't destroy original before we know we have a…
… backup. This was revealed by the `test_file_update_module` in integration, which puts a file in the way of the directory. If it fails that early, we should not delete the original, since we never created a backup. More commonly, this problem would happen if there was no space for the backup, which would obviously be disastrous. So also make sure we have a *complete* backup. Changelog: Title Signed-off-by: Kristian Amlie <kristian.amlie@northern.tech>
- Loading branch information
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters