Skip to content

Commit

Permalink
Merge pull request #17 from gocardless/nlopes/remove-archive-after-de…
Browse files Browse the repository at this point in the history
…compressing

Remove compressed database file after extraction
  • Loading branch information
nlopes authored Sep 15, 2017
2 parents e1545d4 + a28ca00 commit 5bffb0e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

0.1.3
-----

Cleanup compressed upload after extraction

0.1.2
-----

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.1.2
VERSION=0.1.3
BUILD_COMMAND=go build -ldflags "-X main.version=$(VERSION)"
CLIENT_BUILD_COMMAND=go build -ldflags "-X main.version=$(VERSION)"
PACKAGES=./routes ./models ./store ./auth ./cli ./client
Expand Down
1 change: 1 addition & 0 deletions cmd/draupnir-finalise-image
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ sudo mkdir "${UPLOAD_PATH}/tmp"
sudo sh -c "tar xf ${UPLOAD_PATH}/*.tar* -C ${UPLOAD_PATH}/tmp"
sudo sh -c "mv ${UPLOAD_PATH}/tmp/* ${UPLOAD_PATH}/"
sudo rmdir "${UPLOAD_PATH}/tmp"
sudo rm -f "${UPLOAD_PATH}/*.tar" # remove the compressed backup file

sudo rm -f "${UPLOAD_PATH}/postmaster.pid"
sudo rm -f "${UPLOAD_PATH}/postmaster.opts"
Expand Down

0 comments on commit 5bffb0e

Please sign in to comment.