68 Commits
Author SHA1 Message Date
mmetc 790af83c82 move dir debian, rpm to /build/ (#4174) 2026-01-05 15:28:34 +01:00
mmetc 8c78ee894f move hubupdate.sh to libexec (#4000) 2025-10-24 11:04:22 +02:00
mmetc bfb7b9b036 deb: remove cron file (#3987) 2025-10-21 16:33:57 +02:00
mmetc c3ee104fcf hub update: add systemd timer and service (#3977) 2025-10-20 11:08:39 +02:00
mmetc 06155185bf replace cron script with systemd timer (#3842)
* replace cron script with systemd timer

* wip

* keep cron file as reference for distributions without systemd
2025-09-13 00:15:12 +02:00
mmetc 0da5dc461e packaging: clean up redundant debian/install, debian/rules (#3781) 2025-09-05 16:30:29 +02:00
Laurence Jones 2e3789b98c fix: Postint check if api.server.enable is false (#3802) 2025-08-25 15:45:33 +02:00
mmetc 4404bdf61a install scripts: echo -e -> echo (we're not requiring bash anymore) (#3799) 2025-08-18 14:44:21 +02:00
mmetc be436d8617 move detect.yaml to /var/lib/crowdsec/data (#3797) 2025-08-08 16:26:24 +02:00
mmetc 20053b779f cscli setup: new service detection and configuration (#3730) 2025-07-31 17:00:41 +02:00
mmetc 55aa1893d1 explicit message for malformed data URL in local items (#3537) 2025-03-25 11:53:49 +01:00
mmetc 0d2c2daca5 Migration script from debian/ubuntu package 1.4.6 (#3420) 2025-03-25 11:39:57 +01:00
mmetc dc28ae58dc run 'hub upgrade' in rpm/deb postinst, improve hub message (#3440) 2025-02-04 16:51:02 +01:00
blotus 29b2252b50 Improve post-installation message (#3407) 2025-01-20 15:57:26 +01:00
mmetc e1a1b1e565 deb packaging: don't duplicate crowdsec.service if /lib is not linked to /usr/lib (#3415)
We don't need to explicitly copy the file, but the standard location is
/usr/lib, not /lib - hence we must avoid duplicating it by copying explicitly if /lib
is not linked to /usr/lib.

Also we don't need preinst anymore and the message is in postinst as well.
2025-01-20 14:16:01 +01:00
mmetc ff9b350e0e deb build: get version with dpkg-parsechangelog -S (#3405) 2025-01-20 10:31:55 +01:00
mmetc b582730d06 remove commands "cscli config backup/restore" (#3158)
* remove "cscli config backup/restore"
* remove backup/restore calls from deb,rpm pre/postinst and wizard
* remove from prerm too
2025-01-16 14:02:39 +01:00
mmetc 97c1f60a68 make: remove obsolete/redundant parameters (#3304)
* makefile: remove -w from build flags (implied by -s)

* remove reference to obsolete build param
2024-10-29 09:56:51 +01:00
Laurence Jones ecd82ecfbd feat: File notification plugin (#2932)
* 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
2024-05-15 09:21:45 +01:00
mmetc e4a8d3b99e deb,rpm: include empty directory etc/crowdsec/acquis.d (#2997) 2024-05-13 12:01:17 +02:00
blotus 7dd86e2b95 add cron as a suggested package (#2799) 2024-03-14 14:02:53 +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 Sabbanandmmetc c707b72b03 fix lapi credentials creation for debian package (#2646)
* fix lapi credentials creation for package s
---------

Co-authored-by: mmetc <[email protected]>
2023-12-08 12:10:23 +01: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 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
mmetc 534328ca30 decouple bouncer dependencies: use go-cs-lib/pkg/* (#2216)
* decouple bouncer dependencies: use go-cs-lib/pkg/trace
* decouple bouncer dependencies: use go-cs-lib/pkg/version
* decouple bouncer dependencies: use go-cs-lib/pkg/yamlpatch
* decouple bouncer dependencies: use go-cs-lib/pkg/csstring
* unused import
2023-05-23 10:52:47 +02:00
mmetc 0d1adfc7db wizard: auto-detect ssh.service correctly on deb distros when auth.log is missing (fix #2175) (#2176) 2023-04-19 11:09:39 +02:00
AlteredCoderandbui 185f9ad541 Alert context (#1895)
Co-authored-by: bui <[email protected]>
2023-01-04 16:50:02 +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 110272484d use ansible roles from crowdsecurity.testing collection (#1743) 2022-09-12 16:07:14 +02:00
mmetc 1aac5d78d9 replace wizard patch for .deb & .rpm packages with an envvar check (#1630) 2022-08-16 14:59:59 +02:00
Manuel Sabbanandsabban 9fac14488a fix perms for config.yaml installation (#1661)
Co-authored-by: sabban <[email protected]>
2022-07-12 16:05:27 +02:00
mmetc fae1f96856 install config.yaml with chmod 600 (#1518) 2022-05-17 12:50:18 +02:00
Thibault "bui" Koechlin ddfe95e45d user lumberjack rotate instead (#1492) 2022-04-28 17:19:03 +02:00
Manuel Sabbanandsabban c17c651458 add logrotate file for debian (#1474)
* add logrotate file for debian

Co-authored-by: sabban <[email protected]>
2022-04-22 15:42:28 +02:00
Shivam Sandbhor 76e97303a5 Deprecate pid_file config (#1346)
* Deprecate pid_file config

Signed-off-by: Shivam Sandbhor <[email protected]>

* Fix unit test

Signed-off-by: Shivam Sandbhor <[email protected]>

* Impl review suggestions.

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

Co-authored-by: sabban <[email protected]>
2022-03-10 13:57:04 +01:00
Manuel Sabbanandsabban 2763366309 switch to make build for packaging (#1279)
* switch to make build for packaging
* build as first target

Co-authored-by: sabban <[email protected]>
2022-02-18 18:09:19 +01:00
Manuel Sabbanandsabban afe1704aa6 fix upgrade when somthing is already listening on 8080 (#1258)
* this should fix issue #1245
* change cmdline for getting port

Co-authored-by: sabban <[email protected]>
2022-02-15 11:20:52 +01:00