Closed OdinVex closed 3 months ago
Willing to implement this.
Also noting files in /misc/search_engine.php
and /settings.php
need to also be changed.
I forgot about /misc/search_engine.php
, I'll put that in the above sed.
could be good for to add as option in config.php too of course
This should be closed.
This should be closed.
https://github.com/Ahwxorg/LibreY/pull/151#issuecomment-2180834968
Is setting the theme possible via an environmental variable or setting without needing to hijack the entrypoint to sed
or modifying files?
Is setting the theme possible via an environmental variable or setting without needing to hijack the entrypoint to
sed
or modifying files?
Yes! Eventually it'll be merged into main from #167
Is setting the theme possible via an environmental variable or setting without needing to hijack the entrypoint to
sed
or modifying files?Yes! Eventually it'll be merged into main from #167
Alrighty, tentatively closing and looking forward to #167 merging into main.
It has been merged!
I'm not one for AMOLED, the ability to specify a
CONFIG_...
for default theme would be nice. Currently hijacked the Docker's entrypoint to sed replace?? "amoled"
to?? "auto"
.Edit for others (replace auto with whatever theme name you want, use the HTML value):
entrypoint: /bin/sh -c "sed -i \"s/?? \\\"amoled\\\"/?? \\\"auto\\\"/g\" /var/www/html/misc/header.php; sed -i \"s/?? \\\"amoled\\\"/?? \\\"auto\\\"/g\" /var/www/html/misc/search_engine.php; docker/entrypoint.sh"