diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-28 10:53:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-28 11:36:27 +0200 |
commit | b44a96300c1f82e24cfc296de821d809bf031f38 (patch) | |
tree | 9324f8b53e7dd37510921cafbfe034ac50027f7d /support/docker/production/docker-entrypoint.sh | |
parent | c6992499b21c48c73dd9c08e1984eecbbacfcdba (diff) | |
download | PeerTube-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-x | support/docker/production/docker-entrypoint.sh | 6 |
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 |
5 | if [ -z "$(ls -A /config)" ]; then | 5 | if [ -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 | ||
9 | fi | 7 | fi |
10 | 8 | ||
9 | # Always copy default configuration file, in cases where new keys were added | ||
10 | cp /app/config/default.yaml /config | ||
11 | chown -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` |
13 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then | 15 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then |