From b44a96300c1f82e24cfc296de821d809bf031f38 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 28 May 2018 10:53:57 +0200 Subject: Improve docker doc and fix missing keys on update --- support/docker/production/docker-entrypoint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'support/docker/production/docker-entrypoint.sh') diff --git a/support/docker/production/docker-entrypoint.sh b/support/docker/production/docker-entrypoint.sh index 8ee968b3d..447cf7fa4 100755 --- a/support/docker/production/docker-entrypoint.sh +++ b/support/docker/production/docker-entrypoint.sh @@ -4,10 +4,12 @@ set -e # Populate config directory if [ -z "$(ls -A /config)" ]; then cp /app/support/docker/production/config/* /config - cp /app/config/default.yaml /config - chown -R peertube:peertube /config fi +# Always copy default configuration file, in cases where new keys were added +cp /app/config/default.yaml /config +chown -R peertube:peertube /config + # first arg is `-f` or `--some-option` # or first arg is `something.conf` if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then -- cgit v1.2.3