mirror of
https://github.com/linuxserver/docker-librespeed.git
synced 2026-02-20 02:17:25 +08:00
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:
parent
d363577478
commit
0efc70cc4c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user