diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-06-23 22:56:33 -0700 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-06-23 23:04:27 -0700 |
commit | a7ba289efa228613b18abc853c22fb3b5d99b9a7 (patch) | |
tree | 9ea0a10266d7bf00f235d95c6cae7b70cd31428d /entrypoint.sh | |
parent | 796a16c8da1e40aef418559ade2252a5275708c8 (diff) | |
download | homer-a7ba289efa228613b18abc853c22fb3b5d99b9a7.tar.gz homer-a7ba289efa228613b18abc853c22fb3b5d99b9a7.tar.zst homer-a7ba289efa228613b18abc853c22fb3b5d99b9a7.zip |
Regroup all editable files in one place
Diffstat (limited to 'entrypoint.sh')
-rw-r--r-- | entrypoint.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/entrypoint.sh b/entrypoint.sh index 7623322..0b7cd24 100644 --- a/entrypoint.sh +++ b/entrypoint.sh | |||
@@ -1,6 +1,10 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | yes n | cp -i /www/config.yml.dist /www/config.yml | 3 | while true; do echo n; done | cp -Ri /www/default-assets/* /www/assets/ |
4 | while true; do echo n; done | cp -Ri /app/dist/www/assets /www/assets 2>/dev/null | 4 | |
5 | # Ensure compatibility with previous version (config.yml was in the root directory) | ||
6 | if [ -f "/www/config.yml" ]; then | ||
7 | yes n | cp -i /www/config.yml /www/assets | ||
8 | fi | ||
5 | 9 | ||
6 | darkhttpd /www/ --no-listing --port $PORT | 10 | darkhttpd /www/ --no-listing --port $PORT |