From 02934b1face53cd0ee47627ae120ba1f3fc57f87 Mon Sep 17 00:00:00 2001 From: Bo Bartlett Date: Mon, 28 Sep 2026 16:11:09 -0500 Subject: [PATCH] fix(autocaliweb): wire .env into all service units, not just autocaliweb.service (#17561) Only autocaliweb.service loaded $INSTALL_DIR/.env via EnvironmentFile. The other three units never did, so any script they invoke falls back to the Docker-oriented defaults baked into upstream (ACW_CONFIG_DIR=/config, ACW_USER/ACW_GROUP=abc), none of which exist in this LXC install. Confirmed via kindle_epub_fixer.py failing on both a missing /config directory and a missing 'abc' system user during ingest. --- install/autocaliweb-install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/autocaliweb-install.sh b/install/autocaliweb-install.sh index 0976352c7..1990b21a8 100644 --- a/install/autocaliweb-install.sh +++ b/install/autocaliweb-install.sh @@ -266,6 +266,7 @@ Group=${SERVICE_GROUP} WorkingDirectory=${INSTALL_DIR} Environment=CALIBRE_DBPATH=${CONFIG_DIR} Environment=HOME=${CONFIG_DIR} +EnvironmentFile=${INSTALL_DIR}/.env ExecStart=/bin/bash ${SCRIPTS_DIR}/ingest_watcher.sh Restart=always StandardOutput=journal @@ -285,6 +286,7 @@ User=${SERVICE_USER} Group=${SERVICE_GROUP} WorkingDirectory=${INSTALL_DIR} Environment=CALIBRE_DBPATH=${CONFIG_DIR} +EnvironmentFile=${INSTALL_DIR}/.env ExecStart=${SCRIPTS_DIR}/auto_zipper_wrapper.sh Restart=always StandardOutput=journal @@ -303,6 +305,7 @@ After=network.target User=${SERVICE_USER} Group=${SERVICE_GROUP} WorkingDirectory=${INSTALL_DIR} +EnvironmentFile=${INSTALL_DIR}/.env ExecStart=/bin/bash ${SCRIPTS_DIR}/metadata_change_detector_wrapper.sh Restart=always StandardOutput=journal