Generate random passwords and keep them out of the environment/program args

This commit is contained in:
Michael Vines
2019-06-13 11:48:35 -07:00
parent e3f895d7d4
commit 1cd8c1865e
5 changed files with 103 additions and 39 deletions

View File

@ -7,12 +7,11 @@ set -e
for container in influxdb grafana; do
if [ "$(docker ps -q -a -f name=$container)" ]; then
(
set +e
docker rm -f $container
exit 0
)
echo Stopping $container
(
set +e
docker rm -f $container
exit 0
)
fi
done
echo Local metrics stopped