Gitea Actions Runner Test / test-job (push) Successful in 0s
CI / check (push) Successful in 30s
CI / tests-unit (push) Successful in 1m37s
CI / tests-integration (push) Successful in 1m55s
CI / tests-ui (push) Successful in 2m23s
CI / preflight (push) Skipped
CI / deploy (push) Successful in 2m38s
11 lines
684 B
Bash
11 lines
684 B
Bash
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
case "${1:-help}" in
|
|
install) shift; exec bash "$DIR/scripts/docker-install.sh" "$@" ;;
|
|
update) shift; exec bash "$DIR/scripts/docker-update.sh" "$@" ;;
|
|
security) shift; exec bash "$DIR/scripts/crowdsec-setup.sh" "$@" ;;
|
|
help|--help|-h) printf '%s\n' 'bash cms install Configure and install on a Linux Docker host' 'bash cms update Update using saved settings; --skip-pull uses checked-out release' 'bash cms security Configure the opt-in local CrowdSec stack (enable|status|disable)' ;;
|
|
*) echo "Unknown command. Use: bash cms install | update | security" >&2; exit 1 ;;
|
|
esac
|