Skip to content

Commit ab0d64c

Browse files
committed
06-enable-mdns-on-systemd.sh: Add checking systemd-resolved.service is enabled
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
1 parent 4584ef8 commit ab0d64c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/driver/vz/boot/06-enable-mdns-on-systemd.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ fi
1212

1313
# It depends on systemd-resolved
1414
command -v systemctl >/dev/null 2>&1 || exit 0
15+
systemctl is-enabled -q systemd-resolved.service || exit 0
1516
command -v resolvectl >/dev/null 2>&1 || exit 0
1617

1718
# Configure systemd-resolved to enable mDNS resolution globally

0 commit comments

Comments
 (0)