Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit ceff204

Browse files
committed
Only run lsb_release if exists
1 parent def851f commit ceff204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/setup-systemd-resolved/setup-systemd-resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function configure_systemd_resolved {
9898
local -r consul_ip="$2"
9999
local -r consul_port="$3"
100100

101-
UBUNTU_VERSION=`lsb_release -s -r`
101+
UBUNTU_VERSION=`lsb_release && lsb_release -s -r`
102102
if [ "$UBUNTU_VERSION" == "18.04" ] || [ "$UBUNTU_VERSION" == "20.04" ]; then
103103
log_info "Configuring systemd-resolved to forward lookups of the '$consul_domain' domain to $consul_ip:$consul_port in $CONSUL_DNS_MASQ_CONFIG_FILE"
104104

0 commit comments

Comments
 (0)