From 5c0d3846148e67a8155a8c68a6e3fd90cef699e1 Mon Sep 17 00:00:00 2001
From: anima
Date: Sun, 2 Feb 2025 17:55:38 +0100
Subject: [PATCH] optimized echo
---
init.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init.sh b/init.sh
index 0f7c6ea..6140bb2 100644
--- a/init.sh
+++ b/init.sh
@@ -8,7 +8,7 @@ if [ -z "$(ls -A /data)" ]; then
rm -rf /data-init
## create satellite cert
if [ ! -z "$ICINGA2_SATELLITE_CN" ]; then
- echo generate new cert
+ echo generate new cert for node: $ICINGA2_SATELLITE_CN
icinga2 pki new-cert --cn $ICINGA2_SATELLITE_CN \
--key /var/lib/icinga2/certs/$ICINGA2_SATELLITE_CN.key \
--cert /var/lib/icinga2/certs/$ICINGA2_SATELLITE_CN.crt