mirror of
https://github.com/bitnami/containers.git
synced 2026-03-20 14:58:20 +08:00
24 lines
504 B
Bash
Executable File
24 lines
504 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# shellcheck disable=SC1091
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
# set -o xtrace # Uncomment this line for debugging purpose
|
|
|
|
# Load libraries
|
|
. /liblogstash.sh
|
|
|
|
# Load Logstash environment variables
|
|
eval "$(logstash_env)"
|
|
|
|
# Ensure Logstash environment variables are valid
|
|
logstash_validate
|
|
|
|
# Ensure 'daemon' user exists when running as 'root'
|
|
am_i_root && ensure_user_exists "$LOGSTASH_DAEMON_USER" "$LOGSTASH_DAEMON_GROUP"
|
|
|
|
# Ensure Logstash is initialized
|
|
logstash_initialize
|