From 0efc70cc4cb36b367f5308f277187ea99ab68f5f Mon Sep 17 00:00:00 2001 From: German Lashevich Date: Sun, 28 Jan 2024 20:46:29 +0100 Subject: [PATCH] Fix init of static files - force symlink creation to overwrite existing index.html - fix path to example files fixes #26 --- root/etc/s6-overlay/s6-rc.d/init-librespeed-config/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/etc/s6-overlay/s6-rc.d/init-librespeed-config/run b/root/etc/s6-overlay/s6-rc.d/init-librespeed-config/run index 626d21e..5c469ed 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-librespeed-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-librespeed-config/run @@ -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