diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-06-25 21:13:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-25 21:13:22 -0700 |
commit | 449858fb7768f718853512b8b1a3219274e2508e (patch) | |
tree | d059f9664b8e46208af3be11c716903afc479b7b /entrypoint.sh | |
parent | a7ba289efa228613b18abc853c22fb3b5d99b9a7 (diff) | |
download | homer-449858fb7768f718853512b8b1a3219274e2508e.tar.gz homer-449858fb7768f718853512b8b1a3219274e2508e.tar.zst homer-449858fb7768f718853512b8b1a3219274e2508e.zip |
Apply suggestions from code reviewavoid-file-volume
Co-authored-by: Glenn Toms <Glenn@Glenntoms.gg>
Diffstat (limited to 'entrypoint.sh')
-rw-r--r-- | entrypoint.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/entrypoint.sh b/entrypoint.sh index 0b7cd24..6b96f94 100644 --- a/entrypoint.sh +++ b/entrypoint.sh | |||
@@ -1,7 +1,8 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | while true; do echo n; done | cp -Ri /www/default-assets/* /www/assets/ | 3 | while true; do echo n; done | cp -Ri /www/default-assets/* /www/assets/ |
4 | 4 | # This makes sure that at least the default config is available. | |
5 | yes n | cp -i /www/assets/config.yml.dist /www/assets/config.yml | ||
5 | # Ensure compatibility with previous version (config.yml was in the root directory) | 6 | # Ensure compatibility with previous version (config.yml was in the root directory) |
6 | if [ -f "/www/config.yml" ]; then | 7 | if [ -f "/www/config.yml" ]; then |
7 | yes n | cp -i /www/config.yml /www/assets | 8 | yes n | cp -i /www/config.yml /www/assets |