optimized echo
Some checks failed
build container icinga2-stallite / build (push) Failing after 2m29s
Some checks failed
build container icinga2-stallite / build (push) Failing after 2m29s
This commit is contained in:
2
init.sh
2
init.sh
@@ -8,7 +8,7 @@ if [ -z "$(ls -A /data)" ]; then
|
|||||||
rm -rf /data-init
|
rm -rf /data-init
|
||||||
## create satellite cert
|
## create satellite cert
|
||||||
if [ ! -z "$ICINGA2_SATELLITE_CN" ]; then
|
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 \
|
icinga2 pki new-cert --cn $ICINGA2_SATELLITE_CN \
|
||||||
--key /var/lib/icinga2/certs/$ICINGA2_SATELLITE_CN.key \
|
--key /var/lib/icinga2/certs/$ICINGA2_SATELLITE_CN.key \
|
||||||
--cert /var/lib/icinga2/certs/$ICINGA2_SATELLITE_CN.crt
|
--cert /var/lib/icinga2/certs/$ICINGA2_SATELLITE_CN.crt
|
||||||
|
|||||||
Reference in New Issue
Block a user