aboutsummaryrefslogtreecommitdiffhomepage
path: root/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'entrypoint.sh')
-rw-r--r--entrypoint.sh8
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
3yes n | cp -i /www/config.yml.dist /www/config.yml 3while true; do echo n; done | cp -Ri /www/default-assets/* /www/assets/
4while 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)
6if [ -f "/www/config.yml" ]; then
7 yes n | cp -i /www/config.yml /www/assets
8fi
5 9
6darkhttpd /www/ --no-listing --port $PORT 10darkhttpd /www/ --no-listing --port $PORT