From a07924351fcc7e7311e46d90f259587d7958c51c Mon Sep 17 00:00:00 2001
From: Quentin Duchemin <quentinduchemin@tuta.io>
Date: Mon, 3 Feb 2020 22:58:28 +0100
Subject: [PATCH] [MISC] Auto-create dumb secret file for testing

---
 docker_test.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/docker_test.sh b/docker_test.sh
index f37c4f2c..4f5039ff 100755
--- a/docker_test.sh
+++ b/docker_test.sh
@@ -54,6 +54,11 @@ for f in $(grep -l -r ".picasoft.net" .); do
   sed -i "s/.picasoft.net/.test.picasoft.net/g" ${f}
 done
 
+echo -e "\n==== Create dumb secret files ===="
+for f in *.secrets.example; do
+    mv -- "$f" "$(basename -- "$f" .secrets.example).secrets"
+done
+
 echo -e "\n==== Remove and re-create named external volumes ===="
 for v in $(docker-compose config --volumes); do
   # Don't fail if volume does not exists
-- 
GitLab