summaryrefslogtreecommitdiffstats
path: root/docker/add_user.sh
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2020-09-20 14:57:29 +0200
committerFlorian Pritz <bluewind@xinu.at>2020-09-20 15:02:30 +0200
commitab41e7717fe0df20a4ca516b918b64bd32753361 (patch)
tree95cc0a33ef9d6d63cdb3317aab2aae1742a2c24d /docker/add_user.sh
parent80577e948a210e60e6738bf6ea3b0b391ab07b48 (diff)
docker: Always regenerated config files on container startup
We should really regenerate the configs, run migrations and hooks during each container startup. Otherwise you really can't update anything at all. The only thing that we do not do multiple times is adding the admin user, but the add_user method already checks for that and simply displayed an error. Hiding that error is probably not worth the effort so we just add a quick explanatory comment before the potential error. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'docker/add_user.sh')
-rwxr-xr-xdocker/add_user.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/docker/add_user.sh b/docker/add_user.sh
index 4342528ef..88618746d 100755
--- a/docker/add_user.sh
+++ b/docker/add_user.sh
@@ -1,4 +1,5 @@
#!/bin/bash
cd ${FILEBIN_DIR}
+echo "Creating initial user. If it exists, this will show an error message instead"
printf "%s\n%s\n%s\n" admin ${FB_CONTACT_MAIL} admin | php index.php user add_user