blob: 6b96f94fd55a3202166c902f2e4b8dea654851e5 (
plain) (
tree)
|
|
#!/bin/sh
while true; do echo n; done | cp -Ri /www/default-assets/* /www/assets/
# This makes sure that at least the default config is available.
yes n | cp -i /www/assets/config.yml.dist /www/assets/config.yml
# Ensure compatibility with previous version (config.yml was in the root directory)
if [ -f "/www/config.yml" ]; then
yes n | cp -i /www/config.yml /www/assets
fi
darkhttpd /www/ --no-listing --port $PORT
|