From fcad7484e45399542bf090dac558819b7b483d6e Mon Sep 17 00:00:00 2001 From: sabban Date: Fri, 8 Dec 2023 08:21:09 +0100 Subject: [PATCH] fix rpm spec --- rpm/SPECS/crowdsec.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm/SPECS/crowdsec.spec b/rpm/SPECS/crowdsec.spec index 5a3980651..557ec405c 100644 --- a/rpm/SPECS/crowdsec.spec +++ b/rpm/SPECS/crowdsec.spec @@ -171,7 +171,7 @@ if [ $1 == 1 ]; then install -m 600 /dev/null %{_sysconfdir}/crowdsec/online_api_credentials.yaml install -m 600 /dev/null %{_sysconfdir}/crowdsec/local_api_credentials.yaml cscli capi register - cscli machines add -a + [ -s "%{_sysconfdir}/crowdsec/local_api_credentials.yaml" ] || cscli machines add -a fi if [ ! -f "%{_sysconfdir}/crowdsec/online_api_credentials.yaml" ] ; then touch %{_sysconfdir}/crowdsec/online_api_credentials.yaml