add go clean

This commit is contained in:
Patrick Cao Huu Thien 2023-11-10 14:59:16 +01:00
parent 7311cb7528
commit 9480a3b5d3
Signed by untrusted user who does not match committer: pcao
GPG Key ID: B57DBE40C72FBCF4
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ resource "null_resource" "fail2ban_exporter" {
"go build -v", "go build -v",
"echo '# install fail2ban_exporter'", "echo '# install fail2ban_exporter'",
"install -Dm775 fail2ban-prometheus-exporter /usr/sbin/fail2ban_exporter", "install -Dm775 fail2ban-prometheus-exporter /usr/sbin/fail2ban_exporter",
"echo '# clean go cache'",
"go env GOCACHE",
"go clean -modcache",
#
# #
"echo '# enable service fail2ban_exporter'", "echo '# enable service fail2ban_exporter'",
"install -Dm775 /tmp/fail2ban_exporter.initd /etc/init.d/fail2ban_exporter", "install -Dm775 /tmp/fail2ban_exporter.initd /etc/init.d/fail2ban_exporter",