fix the systemd-resolved service check in Pi-hole's pre-install hook (#984)

Co-authored-by: Mark Sheppard <>
This commit is contained in:
Mark SheppardandMark Sheppard authored and GitHub committed 2024-03-26 12:45:05 -07:00
1 parent 09aa58a06d
commit 2c3fdd15b2
1 file changed
+1 -1
+1 -1
View File
@@ -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