- Introduced `crowdsec-configuration.sh` to enable write-ahead logging in SQLite for improved performance. - Added `crowdsec-repo-setup.sh` for automated installation of Crowdsec repositories, handling various Linux distributions and package managers. - Included `tailscale.sh` for detecting the OS and installing Tailscale according to its conventions, supporting multiple package management systems.
8 lines
336 B
Bash
8 lines
336 B
Bash
#!/usr/bin/env bash
|
|
set -euf -o pipefail
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Enable write-ahead-logging (wal -- allowing more concurrency in SQLite that will improve performances in most scenarios.)
|
|
sed -i -E '/^db_config:/,/^[^[:space:]]/{s/^([[:space:]]*)type:[[:space:]]*sqlite$/&\
|
|
\1use_wal: true/}' /etc/crowdsec/config.yaml
|