add --force to keep with the legacy behavior

This commit is contained in:
sabban 2023-12-08 10:59:58 +01:00
parent b59fb8ef43
commit 185c1ca600

View file

@ -171,7 +171,7 @@ if [ $1 == 1 ]; then
cscli capi register
fi
if [ ! -f "%{_sysconfdir}/crowdsec/local_api_credentials.yaml" ] ; then
cscli machines add -a
cscli machines add -a --force
fi
cscli hub update