linuxserver / docker-librespeed

GNU General Public License v3.0
76 stars 9 forks source link

/config/www/index.html file not recreated when deleted #12

Closed symetryczny closed 3 years ago

symetryczny commented 3 years ago

linuxserver.io


Expected Behavior

When deleted, the index.html file located in /config/www/ should be recreated once the container is restarted as per the application setup guideline:

The default template used is based on example-singleServer-full.html. However, all templates are provided for reference at /config/www/. Feel free to customize /config/www/index.html as you like. Delete the file and restart to go back to the image default.

Current Behavior

When index.html file is deleted and container restarted, the file is not recreated generating a "403 forbidden" error.

Steps to Reproduce

  1. Delete /config/www/index.html
  2. Restart the container
  3. index.html is not recreated

Environment

OS: unRaid CPU architecture: x86_64 How docker service was installed: From official docker repo. Template from unRaid Community Applications

Command used to create docker container (run/create/compose/screenshot)

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
usermod: no changes

-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/

Brought to you by linuxserver.io
-------------------------------------

To support the app dev(s) visit:
LibreSpeed (Liberapay): https://liberapay.com/fdossena/donate
LibreSpeed (Paypal): https://www.paypal.me/sineisochronic

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid: 99
User gid: 100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 50-config: executing...
/var/run/s6/etc/cont-init.d/50-config: line 22: : command not found
Setting permissions
[cont-init.d] 50-config: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
github-actions[bot] commented 3 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!