mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2024-11-13 17:09:17 +00: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:
parent
09aa58a06d
commit
2c3fdd15b2
|
@ -5,7 +5,7 @@ RESOLVED_SERVICE_NAME="systemd-resolved"
|
||||||
RESOLVED_CONF_FILE="/etc/systemd/resolved.conf"
|
RESOLVED_CONF_FILE="/etc/systemd/resolved.conf"
|
||||||
|
|
||||||
# Check if the 'systemd-resolved' service is running
|
# 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"
|
echo "Service '${RESOLVED_SERVICE_NAME}' is not running"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user