-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from benhoyt/snap-restore
#18 Snap mongorestore (`juju-db.mongorestore`) can't access files under /tmp, so move the dump directory to under `/home/jenkins/snap/juju-db/common` (which mongorestore has access to). We need to ensure the parent directory is created first, before moving it. Also fix the issue where the output of `juju-db.mongorestore` wasn't being written to the log -- this was happening because the `restore.log` file was in the current directory, which was not writeable by the Snap binary (even though the Stdout/Stderr was being redirected, I guess the file permissions carry over the process boundary). So have mongorestore write to a buffer and then `juju-restore` writes out the log file.
- Loading branch information
Showing
2 changed files
with
78 additions
and
9 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