aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/docker-entrypoint.sh
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-28 10:53:57 +0200
committerChocobozzz <me@florianbigard.com>2018-05-28 11:36:27 +0200
commitb44a96300c1f82e24cfc296de821d809bf031f38 (patch)
tree9324f8b53e7dd37510921cafbfe034ac50027f7d /support/docker/production/docker-entrypoint.sh
parentc6992499b21c48c73dd9c08e1984eecbbacfcdba (diff)
downloadPeerTube-b44a96300c1f82e24cfc296de821d809bf031f38.tar.gz
PeerTube-b44a96300c1f82e24cfc296de821d809bf031f38.tar.zst
PeerTube-b44a96300c1f82e24cfc296de821d809bf031f38.zip
Improve docker doc and fix missing keys on update
Diffstat (limited to 'support/docker/production/docker-entrypoint.sh')
-rwxr-xr-xsupport/docker/production/docker-entrypoint.sh6
1 files changed, 4 insertions, 2 deletions
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
4# Populate config directory 4# Populate config directory
5if [ -z "$(ls -A /config)" ]; then 5if [ -z "$(ls -A /config)" ]; then
6 cp /app/support/docker/production/config/* /config 6 cp /app/support/docker/production/config/* /config
7 cp /app/config/default.yaml /config
8 chown -R peertube:peertube /config
9fi 7fi
10 8
9# Always copy default configuration file, in cases where new keys were added
10cp /app/config/default.yaml /config
11chown -R peertube:peertube /config
12
11# first arg is `-f` or `--some-option` 13# first arg is `-f` or `--some-option`
12# or first arg is `something.conf` 14# or first arg is `something.conf`
13if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 15if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then