* Fix cp -n
* Don't rely on cp for file existence check
* Busybox cp can be used now
* test -s -> test -f
* test -f -> test -e
---------
Co-authored-by: marco <marco@crowdsec.net>
* wip: basic impl of file notification no log rotate but might now do it 🤷
* wip: ticker to 2 seconds and lower some log levels
* wip: remove redundant logrus formatter
* wip: the plugin should not handle it own data queue since the plugin process may timeout, so instead have a function that uses said context and loop whilst locking the filewriter this may not be the best way 🤷, however, I dont want multiple notifications to attempt to reopen the file if it has been rotated outside of the plugin context
* wip: impl log rotation which checks on check append, however, this may cause some issues in slow systems as the mutex lock doesnt give up until the file is rotated, however, the plugin looks for context and will give up if the plugin broker decides its timeout and will retry once the plugin has pushed again
* wip: update yaml dep
* wip: me no english great
* wip: even if the file has been rotated outside our control we should still compute the file size
* wip: improve context handling with creating a custom io writer struct which checks the context before attempting to write
* wip: used return byte count instead of calling a conversion again
* wip: actually check the enabled flag on log rotate
* wip: changed my mind, we check when we check file size
* wip: use io copy instead for memory alloc
* fix: add notification file to deb/rpm build
* post install: avoid message "no such file or directory" when looking for logs
* post install: avoid info and warning messages when registering to capi
* lint (backtick)
* feedback on stdout, not log.Info
* rename parameters to silence warnings from "unusedparams"
* debian postinst: skip duplicate warnings with 'cscli machines add'
* rpm postinst: skip duplicate warnings in 'cscli machines add'
* update func tests
* debian prerm: if dashboard remove fails, explain it's ok
* debian prerm: suppress warnings about wal, capi when attempting to remove the dashboard
* wizard.sh: log format like crowdsec
* use usr over var for plugins
* add patch for debian directory
* patch rpm conf as well
* update directory structure
* modify config at build time
* use macros
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>