Skip to content

Commit 0efc70c

Browse files
committed
Fix init of static files
- force symlink creation to overwrite existing index.html - fix path to example files fixes #26
1 parent d363577 commit 0efc70c

File tree

1 file changed

+2
-2
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-librespeed-config

1 file changed

+2
-2
lines changed

root/etc/s6-overlay/s6-rc.d/init-librespeed-config/run

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ mkdir -p \
77

88
# create symlink to index.html
99
if [[ ! -L /app/www/public/index.html ]]; then
10-
ln -s /config/www/index.html /app/www/public/index.html
10+
ln -sf /config/www/index.html /app/www/public/index.html
1111
fi
1212

1313
# update templates
14-
cp /app/www/public/example*.html /config/www/
14+
cp /app/www/public/examples/example*.html /config/www/
1515

1616
# use custom js files if exist
1717
if [[ -f /config/www/speedtest.js ]]; then

0 commit comments

Comments
 (0)