Fix init of static files

- force symlink creation to overwrite existing index.html
- fix path to example files

fixes #26
This commit is contained in:
German Lashevich 2024-01-28 20:46:29 +01:00
parent d363577478
commit 0efc70cc4c
No known key found for this signature in database
GPG Key ID: C845220C41E0B3FE

View File

@ -7,11 +7,11 @@ mkdir -p \
# create symlink to index.html
if [[ ! -L /app/www/public/index.html ]]; then
ln -s /config/www/index.html /app/www/public/index.html
ln -sf /config/www/index.html /app/www/public/index.html
fi
# update templates
cp /app/www/public/example*.html /config/www/
cp /app/www/public/examples/example*.html /config/www/
# use custom js files if exist
if [[ -f /config/www/speedtest.js ]]; then