add go clean
This commit is contained in:
parent
7311cb7528
commit
9480a3b5d3
4
main.tf
4
main.tf
|
@ -53,6 +53,10 @@ resource "null_resource" "fail2ban_exporter" {
|
|||
"go build -v",
|
||||
"echo '# install 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'",
|
||||
"install -Dm775 /tmp/fail2ban_exporter.initd /etc/init.d/fail2ban_exporter",
|
||||
|
|
Loading…
Reference in New Issue