add clean in remote build process

This commit is contained in:
Patrick CAO HUU THIEN 2022-11-30 14:58:04 +01:00
parent dc803f8122
commit 39f66b2eab
1 changed files with 3 additions and 1 deletions

View File

@ -38,8 +38,10 @@ resource "null_resource" "alpine_prometheus_node_exporter" {
#
"echo '# enable service node_exporter'",
"rc-update add node_exporter",
"/etc/init.d/node_exporter start",
"rc-service node_exporter start",
#
"echo '# clean'",
"rm -rf node_exporter-${var.node_exporter_version}.linux-amd64.tar.gz node_exporter-${var.node_exporter_version}.linux-amd64",
"echo '# module DONE'",
]
}