mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-28 08:14:52 +03:00
fix the systemd-resolved service check in Pi-hole's pre-install hook (#984)
Co-authored-by: Mark Sheppard <>
This commit is contained in:
1 parent
09aa58a06d
commit
2c3fdd15b2
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user