diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ca83894..7c8dfd3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ Changelog ========= +0.1.3 +----- + +Cleanup compressed upload after extraction + 0.1.2 ----- diff --git a/Makefile b/Makefile index 9179e9db..d2e45638 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/cmd/draupnir-finalise-image b/cmd/draupnir-finalise-image index 254a35f8..6dcd6c67 100755 --- a/cmd/draupnir-finalise-image +++ b/cmd/draupnir-finalise-image @@ -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"