Skip to content

Commit

Permalink
Merge pull request #18 from gocardless/hmac/actually-delete-archive
Browse files Browse the repository at this point in the history
Actually delete uploaded db archives
  • Loading branch information
Harry Maclean authored Sep 26, 2017
2 parents 5bffb0e + 50c97d0 commit af46c41
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

0.1.4
-----

Fix a bug where uploaded database archives were not being deleted.
Minor fix to CLI output formatting

0.1.3
-----

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.3
VERSION=0.1.4
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
2 changes: 1 addition & 1 deletion cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func showExportCommand(config Config, instance models.Instance) {
}

func ImageToString(i models.Image) string {
return fmt.Sprintf("%d [ %s - READY: %5t ]", i.ID, i.BackedUpAt.Format(time.RFC3339), i.Ready)
return fmt.Sprintf("%2d [ %s - READY: %5t ]", i.ID, i.BackedUpAt.Format(time.RFC3339), i.Ready)
}

func InstanceToString(i models.Instance) string {
Expand Down
2 changes: 1 addition & 1 deletion cmd/draupnir-finalise-image
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +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 sh -c "rm -f ${UPLOAD_PATH}/*.tar*" # remove the compressed backup file(s)

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

0 comments on commit af46c41

Please sign in to comment.