From 2d4873703f1251f66b5a8e0304a8443aec297a7e Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Mon, 9 Jan 2023 18:29:13 +0100 Subject: [PATCH] suricata acme_sync: less noisy output --- suricata/acme_rsync/Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/suricata/acme_rsync/Makefile b/suricata/acme_rsync/Makefile index 858fd95..f27983c 100644 --- a/suricata/acme_rsync/Makefile +++ b/suricata/acme_rsync/Makefile @@ -38,8 +38,9 @@ REMOTE_ACME_PATH=rsync://$(RSYNCD_USER)@$(RSYNCD_HOST)/acme RSYNC_OPTS=--archive --delete --acls --xattrs --compress --verbose --human-readable sync_certs: - mkdir -p $(CERTS_DIR) - rsync \ + @mkdir -p $(CERTS_DIR) + @echo "pulling certs with rsync"X + @rsync \ $(RSYNC_OPTS) \ $(REMOTE_ACME_PATH) \ $(CERTS_DIR) @@ -51,7 +52,8 @@ $(ACME_KEY_FILE): sync_certs ############################################################################### $(JSON_SECRET): $(ACME_KEY_FILE) $(ACME_FULLCHAIN_FILE) $(ACME_KEY_FILE) - jq --null-input --raw-output \ + @echo "building json secret file" + @jq --null-input --raw-output \ --arg kind "Secret" \ --arg name "$(SECRET_NAME)" \ --arg cacert "$$(base64 -w 0 $(ACME_CA_FILE))" \ @@ -87,8 +89,8 @@ define put_secret endef $(SECRET_UPDATED): $(JSON_SECRET) - mkdir -p $(@D) - GET_STATUS_CODE=$$($(call get_secret)); \ + @mkdir -p $(@D) + @GET_STATUS_CODE=$$($(call get_secret)); \ if [ "$${GET_STATUS_CODE}" = "404" ]; then \ echo "adding cert"; \ POST_STATUS_CODE=$$($(call post_secret,$^)); \ @@ -98,5 +100,6 @@ $(SECRET_UPDATED): $(JSON_SECRET) PUT_STATUS_CODE=$$($(call put_secret,$^)); \ [ "$${PUT_STATUS_CODE}" = "200" ] && touch $@; \ fi + @echo "done" ###############################################################################