diff options
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 |