diff --git a/root/etc/s6-overlay/s6-rc.d/init-changedetection-config/run b/root/etc/s6-overlay/s6-rc.d/init-changedetection-config/run index 321b346..2d35178 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-changedetection-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-changedetection-config/run @@ -1,5 +1,8 @@ #!/usr/bin/with-contenv bash # shellcheck shell=bash +# Force UTF-8 encoding for browser steps to prevent exception +sed -i "s|xpath_element_js = importlib.resources.files(\"changedetectionio.content_fetchers.res\").joinpath('xpath_element_scraper.js').read_text()|xpath_element_js = importlib.resources.files(\"changedetectionio.content_fetchers.res\").joinpath('xpath_element_scraper.js').read_text(encoding='utf-8')|" /app/changedetection/changedetectionio/blueprint/browser_steps/browser_steps.py + lsiown -R abc:abc \ /config \