fix(miniflux): use systemctl to check service instead of file path

The miniflux.service file is installed by the deb package at
/usr/lib/systemd/system/ not /etc/systemd/system/, causing the
update script to fail with 'No Miniflux Installation Found!'.

Using 'systemctl is-enabled' is more robust and works regardless
of where the service file is located.
This commit is contained in:
CanbiZ
2025-12-16 11:08:25 +01:00
parent 51ba8ca7c8
commit bde63a9c7b

View File

@ -23,7 +23,7 @@ function update_script() {
header_info header_info
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -f /etc/systemd/system/miniflux.service ]]; then if ! systemctl -q is-enabled miniflux 2>/dev/null; then
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi