From 39f66b2eabe9e87a9c03714707a87b871ac75e91 Mon Sep 17 00:00:00 2001 From: Patrick Cao Huu Thien Date: Wed, 30 Nov 2022 14:58:04 +0100 Subject: [PATCH] add clean in remote build process --- main.tf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index e0df238..0835010 100644 --- a/main.tf +++ b/main.tf @@ -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'", ] }