aboutsummaryrefslogtreecommitdiffhomepage
path: root/entrypoint.sh
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2020-06-25 21:13:22 -0700
committerGitHub <noreply@github.com>2020-06-25 21:13:22 -0700
commit449858fb7768f718853512b8b1a3219274e2508e (patch)
treed059f9664b8e46208af3be11c716903afc479b7b /entrypoint.sh
parenta7ba289efa228613b18abc853c22fb3b5d99b9a7 (diff)
downloadhomer-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.sh3
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
3while true; do echo n; done | cp -Ri /www/default-assets/* /www/assets/ 3while 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.
5yes 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)
6if [ -f "/www/config.yml" ]; then 7if [ -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