fix lapi credentials creation for debian package
This commit is contained in:
parent
4acb4f8df3
commit
53584a8a56
2
debian/postinst
vendored
2
debian/postinst
vendored
|
@ -58,7 +58,7 @@ if [ "$1" = configure ]; then
|
||||||
db_get crowdsec/capi
|
db_get crowdsec/capi
|
||||||
CAPI=$RET
|
CAPI=$RET
|
||||||
|
|
||||||
cscli machines add -a
|
[ -s /etc/crowdsec/local_api_credentials.yaml ] || cscli machines add -a --force
|
||||||
|
|
||||||
if [ "$CAPI" = true ]; then
|
if [ "$CAPI" = true ]; then
|
||||||
cscli capi register
|
cscli capi register
|
||||||
|
|
Loading…
Reference in a new issue