From 53584a8a56bc1dade464104fe2b20bbd8159313d Mon Sep 17 00:00:00 2001 From: sabban Date: Thu, 7 Dec 2023 23:02:23 +0100 Subject: [PATCH] fix lapi credentials creation for debian package --- debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index a862c8875..093e3e34e 100644 --- a/debian/postinst +++ b/debian/postinst @@ -58,7 +58,7 @@ if [ "$1" = configure ]; then db_get crowdsec/capi CAPI=$RET - cscli machines add -a + [ -s /etc/crowdsec/local_api_credentials.yaml ] || cscli machines add -a --force if [ "$CAPI" = true ]; then cscli capi register