Skip to content
Snippets Groups Projects
Verified Commit fa17bd10 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[MISC] Don't try to create dumb secrets if there is no need

parent 32977d62
No related branches found
No related tags found
No related merge requests found
......@@ -34,10 +34,12 @@ cd "$1"
echo -e "Starting procedure for \033[31m$1\e[0m..."
echo -e "\n==== Create dumb secret files ===="
for f in *.secrets.example; do
mv -- "$f" "$(basename -- "$f" .secrets.example).secrets"
done
if [[ -d secrets ]]; then
echo -e "\n==== Create dumb secret files ===="
for f in secrets/*.secrets.example; do
mv -- "$f" "$(basename -- "$f" .secrets.example).secrets"
done
fi
echo -e "\n==== Stop and remove existing containers ===="
docker-compose down
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment