Sha256: 1aec71b4a910aaea300b7f0b52d57462da1d94cf741cce5a9f7a671ad286489f

Contents?: true

Size: 531 Bytes

Versions: 19

Compression:

Stored size: 531 Bytes

Contents

#!/usr/bin/dumb-init /bin/sh

uid=${FLUENT_UID:-1000}

# check if a old fluent user exists and delete it
cat /etc/passwd | grep fluent
if [ $? -eq 0 ]; then
    deluser fluent
fi

# (re)add the fluent user with $FLUENT_UID
adduser -D -g '' -u ${uid} -h /home/fluent fluent

#source vars if file exists
DEFAULT=/etc/default/fluentd

if [ -r $DEFAULT ]; then
    set -o allexport
    source $DEFAULT
    set +o allexport
fi

# chown home and data folder
chown -R fluent /home/fluent
chown -R fluent /fluentd

exec su-exec fluent "$@"

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
fluent-plugin-k8s-metrics-agg-1.2.3 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.2.2 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.2.1 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.2.0 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.1.12 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.1.11 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.1.10 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.1.9 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.1.8 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.1.7 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.1.6 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.1.5 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.1.4 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.1.3 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.1.2 docker/entrypoint.sh
fluent-plugin-kubernetes-metrics-1.1.2 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.1.1 docker/entrypoint.sh
fluent-plugin-k8s-metrics-1.1.1 docker/entrypoint.sh
fluent-plugin-k8s-metrics-agg-1.1.0 docker/entrypoint.sh