Commit graph

48 commits

Author SHA1 Message Date
Manuel Sabban fd2bb8927c
Fix rpm build (#2894)
* fix rpm build
2024-03-15 14:36:34 +01:00
mmetc 8e9e091656
systemd: check configuration before attempting reload (#2861) 2024-02-26 13:44:40 +01:00
mmetc fa8d5b6992
post-install: reduce verbosity (#2751)
* 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)
2024-01-18 09:20:52 +01:00
Manuel Sabban 052accd6bb
welcome message when installing packages (#2672)
* welcome message when installing packages
2023-12-20 09:44:10 +01:00
mmetc 240f057f95
postinst: update check for enabled lapi (#2674) 2023-12-19 21:46:34 +01:00
mmetc 12d9fba4b3
cscli machines: lint + write output to stdout instead of log (#2657)
* 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
2023-12-13 15:43:46 +01:00
Manuel Sabban 6eabb461ce
copy debian behavior for now (#2655) 2023-12-12 13:22:15 +01:00
Manuel Sabban c707b72b03
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>
2023-12-08 12:10:23 +01:00
Manuel Sabban ce276d3838
Fix fc38 (#2468)
* fix installation on fc38
2023-09-18 11:54:09 +02:00
mmetc 2aa55e9444
move plugins/notifications/* to cmd/notification-* (#2429)
This ensures keeping all dependencies in sync, and simplifies
packaging under freebsd/gentoo/etc because there is a single
vendor directory.
2023-08-24 09:46:25 +02:00
Manuel Sabban 1d5baa657f
should fix the rpm build (#2396) 2023-08-01 08:20:39 +02:00
Manuel Sabban 2cb7b0bee6
Fix unit file after modification (#2395)
* fix service file for rpm packages build
2023-07-31 16:57:23 +02:00
blotus 77d58652a3
add sentinel notification plugin (#2268) 2023-07-25 15:07:10 +02:00
mmetc 98c6038fde
Build with libre2 by default, options for wasm and static; add mk/gmsl (#2295) 2023-06-23 14:25:29 +02:00
AlteredCoder 185f9ad541
Alert context (#1895)
Co-authored-by: bui <thibault@crowdsec.net>
2023-01-04 16:50:02 +01:00
mmetc 38b37db55b
systemd: same restart options across deb, rpm, wizard (#1948) 2022-12-28 10:13:05 +01:00
mmetc cc228f1868
Typos, grammar (#1905) 2022-12-06 15:55:27 +01:00
Laurence Jones ac6e0c1b89
fix cron removal (#1829) 2022-10-20 16:43:34 +01:00
Laurence Jones 24b540ecde
Cronjob via packages (#1820)
* Final version
2022-10-18 16:11:48 +01:00
Laurence Jones 33383faf9e
Cronjob remove fails due to [[ (#1818)
* Fix

* Fix
2022-10-17 17:09:52 +01:00
Laurence Jones 0ecb6dcd4d
Hub auto update cronjob (#1817)
Add hub cron installation to install scripts

Plus remove on uninstall
2022-10-17 16:04:01 +01:00
mmetc 03b5184837
restrict permissions for plugin configurations (#1745) 2022-09-14 14:23:18 +02:00
mmetc 1aac5d78d9
replace wizard patch for .deb & .rpm packages with an envvar check (#1630) 2022-08-16 14:59:59 +02:00
mmetc fae1f96856
install config.yaml with chmod 600 (#1518) 2022-05-17 12:50:18 +02:00
Manuel Sabban f1dbe8c9dd
add the ability to build on fc36 (#1524)
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-05-13 18:36:10 +02:00
Manuel Sabban 2c4edac28b
update rpm patch to allow build again (#1388)
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-03-24 12:42:40 +01:00
Shivam Sandbhor 76e97303a5
Deprecate pid_file config (#1346)
* Deprecate pid_file config

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>

* Fix unit test

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>

* Impl review suggestions.

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-03-16 09:23:49 +01:00
Manuel Sabban bec231c1e6
Fix 1314 (#1320)
* fix https://github.com/crowdsecurity/crowdsec/issues/1314
* fix postinst logic
* fix in rpm as well

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-03-10 13:57:04 +01:00
Thibault "bui" Koechlin a300d5818f
fix #1295 : deploy email plugin on RPMs (#1296)
* fix #1295 : deploy email plugin on RPMs
2022-02-28 14:59:33 +01:00
Manuel Sabban 2763366309
switch to make build for packaging (#1279)
* switch to make build for packaging
* build as first target

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-02-18 18:09:19 +01:00
Manuel Sabban 715c32ef9c
clean up hub dir on rpm remove (#1205)
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-01-24 18:16:51 +01:00
Manuel Sabban 0814a7b19d
fix fc35 package (#1198)
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-01-24 11:33:28 +01:00
mmetc 8310c10ce3
console_config.yaml -> console.yaml (#1195) 2022-01-21 11:52:23 +01:00
Manuel Sabban 894388ec6c
update deps for fc35 (#1193)
* update to fc35

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-01-21 09:06:53 +01:00
Manuel Sabban 363abafe4b
make console_config.yaml known to rpm system (#1190)
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-01-20 14:31:44 +01:00
Thibault "bui" Koechlin 6e92da76ad
lapi to capi : allow push of tainted/custom/manual decisions (#1154)
* add console command to control signal sharing
* modify metrics endpoint to add lastpush

Co-authored-by: alteredCoder <kevin@crowdsec.net>
2022-01-13 16:46:16 +01:00
Manuel Sabban 0d075f32cd
fix perms in package installation (#1012)
* fix perms

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-10-22 10:14:15 +02:00
Thibault "bui" Koechlin 21dfc784b1
remove config.patch on master (#957)
* remove config.patch on master

* fix functional tests for plugins : replace group by nobody's actual group

* fix mock http server
2021-09-09 19:12:44 +02:00
Manuel Sabban 9b5cb6abc9
fucntional tests fix (#952)
* add patch for the user used for starting plugins
* fix postinst
* fix fucn tests to make it work with ansible
* group_wait to 5s
* small fixes

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-09-09 16:24:59 +02:00
Manuel Sabban 1d955f4258
fix plugins directories (#942)
* 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>
2021-09-07 17:18:55 +02:00
Manuel Sabban a42d99529b
fix wizard patch (#934)
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-09-03 14:12:14 +02:00
Manuel Sabban ff0fb50032
Rpm fixes (#914)
* create directory

* conf file

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-08-26 14:48:12 +02:00
Manuel Sabban 2018f9c800
create directory (#913)
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-08-26 14:13:00 +02:00
Manuel Sabban c5d7509782
Rpm fixes (#912)
* remove golang dependency, as it's taken care of with golang source

* * add rpm files entry
* use more rpm macros
* fix plugins destination

* typo

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-08-26 13:54:39 +02:00
Manuel Sabban 5af620469a
Rpm fixes (#911)
* remove golang dependency, as it's taken care of with golang source

* * add rpm files entry
* use more rpm macros
* fix plugins destination

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-08-26 13:37:58 +02:00
Manuel Sabban f1f77762b3
remove golang dependency, as it's taken care of with golang source (#909)
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-08-26 08:50:59 +02:00
Thibault "bui" Koechlin 950759f6d6
Output plugins (#878)
* Add plugin system for notifications (#857)
2021-08-25 11:43:29 +02:00
blotus 1a605f33da
import debian & rpm sources (#898) 2021-08-18 13:57:06 +02:00