diff --git a/pi-hole/hooks/pre-install b/pi-hole/hooks/pre-install index 5e0da11ba..a65b00369 100755 --- a/pi-hole/hooks/pre-install +++ b/pi-hole/hooks/pre-install @@ -5,7 +5,7 @@ RESOLVED_SERVICE_NAME="systemd-resolved" RESOLVED_CONF_FILE="/etc/systemd/resolved.conf" # Check if the 'systemd-resolved' service is running -if ! systemctl is-active --quiet service "${RESOLVED_SERVICE_NAME}"; then +if ! systemctl is-active --quiet "${RESOLVED_SERVICE_NAME}.service"; then echo "Service '${RESOLVED_SERVICE_NAME}' is not running" exit fi