Skip to content

Ability to change favicon #565

Closed
Closed

Description

@segaura

Hallo.
In issue #132 it has been suggested to mount the favicon files using docker this way

volumes:
  - /absolute/host/path/my-icon-16x16.png:/var/www/localhost/heimdall/public/favicon-16x16.png
  - /absolute/host/path/my-icon-32x32.png:/var/www/localhost/heimdall/public/favicon-32x32.png
  - /absolute/host/path/my-icon-96x96.png:/var/www/localhost/heimdall/public/favicon-96x96.png
  - /absolute/host/path/my-icon.ico:/var/www/localhost/heimdall/public/favicon.ico

If I do this I get these messages in the log

[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...
New container detected, installing Heimdall
tar: public/favicon-16x16.png: Cannot open: File exists
tar: public/favicon-32x32.png: Cannot open: File exists
tar: public/favicon-96x96.png: Cannot open: File exists
tar: public/favicon.ico: Cannot open: File exists
tar: Exiting with failure status due to previous errors
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.

and apparently this lead to a permanent and complete malfunctioning with this log

In PackageManifest.php line 168:

  The /var/www/localhost/heimdall/bootstrap/cache directory must be present and writable.

For those who managed to change favicon though docker, did you do something different or something else?

Activity

  1. RomainL972 commented on Jun 4, 2021

    @RomainL972

    Hi,
    We achieved this by putting the logos in the heimdall volume, for example in /config/logos, with all the files named favicon-.png
    Then, we created a script in /config/custom-cont-init.d/copy-logos.sh with the following content :

    #!/bin/bash
    
    cp /config/logos/* /var/www/localhost/heimdall/public/
  2. locked and limited conversation to collaborators on Mar 12, 2022
  3. converted this issue into a discussion #674 on Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions