Skip to content

Commit

Permalink
Merge pull request #108 from liortamari/dont-print-password
Browse files Browse the repository at this point in the history
don't print password to container log
  • Loading branch information
pgoron authored Mar 25, 2022
2 parents 453df8c + f57033d commit fd54570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cp /etc/cassandra_exporter/config.yml /tmp/config.yml
while IFS='=' read -r name value ; do
if [[ $name == 'CASSANDRA_EXPORTER_CONFIG_'* ]]; then
val="${!name}"
echo "$name $val"
if [[ $name == 'CASSANDRA_EXPORTER_CONFIG_password' ]]; then echo "$name ****"; else echo "$name $val"; fi
field=$(echo $name | sed -r 's/CASSANDRA_EXPORTER_CONFIG_(.+)/\1/')
sed -ri "s/^($field):.*/\1: $val/" "/tmp/config.yml"
fi
Expand Down

0 comments on commit fd54570

Please sign in to comment.