mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
fix lapi credentials creation for debian package (#2646)
* fix lapi credentials creation for package s --------- Co-authored-by: mmetc <92726601+mmetc@users.noreply.github.com>
This commit is contained in:
parent
84cbff16d4
commit
c707b72b03
3 changed files with 3 additions and 11 deletions
2
debian/postinst
vendored
2
debian/postinst
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue