Delete Archive after unarchiving
This commit is contained in:
parent
372972fa2b
commit
138a926999
1 changed files with 1 additions and 1 deletions
|
@ -24,6 +24,6 @@ func PostUpdate(ctx *gin.Context) {
|
||||||
}
|
}
|
||||||
file, err := os.Open("./" + siteUpdate.Filename)
|
file, err := os.Open("./" + siteUpdate.Filename)
|
||||||
unpackit.Unpack(file, "./")
|
unpackit.Unpack(file, "./")
|
||||||
|
os.RemoveAll("./" + siteUpdate.Filename)
|
||||||
ctx.JSON(http.StatusOK, gin.H{"data": siteUpdate.Filename, "err": err})
|
ctx.JSON(http.StatusOK, gin.H{"data": siteUpdate.Filename, "err": err})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue