Support `Ubuntu 22.04`.
This commit is contained in:
parent
cb66b7eed3
commit
43fbbe1f18
|
@ -2,7 +2,7 @@
|
||||||
# Specifying the default settings:
|
# Specifying the default settings:
|
||||||
# -------------------------------------------
|
# -------------------------------------------
|
||||||
case run_command('grep VERSION_ID /etc/os-release | awk -F\" \'{print $2}\'').stdout.chomp
|
case run_command('grep VERSION_ID /etc/os-release | awk -F\" \'{print $2}\'').stdout.chomp
|
||||||
when "20.04"
|
when "20.04", "22.04"
|
||||||
cmd = 'LANG=C ip a | grep "inet " | grep -v -E "(127|172)" | cut -d" " -f6 | perl -pe "s/\/.+//g"'
|
cmd = 'LANG=C ip a | grep "inet " | grep -v -E "(127|172)" | cut -d" " -f6 | perl -pe "s/\/.+//g"'
|
||||||
|
|
||||||
when "18.04"
|
when "18.04"
|
||||||
|
|
|
@ -7,7 +7,7 @@ package 'dnsmasq'
|
||||||
end
|
end
|
||||||
|
|
||||||
case run_command('grep VERSION_ID /etc/os-release | awk -F\" \'{print $2}\'').stdout.chomp
|
case run_command('grep VERSION_ID /etc/os-release | awk -F\" \'{print $2}\'').stdout.chomp
|
||||||
when "20.04"
|
when "20.04", "22.04"
|
||||||
template '/etc/systemd/resolved.conf' do
|
template '/etc/systemd/resolved.conf' do
|
||||||
owner 'root'
|
owner 'root'
|
||||||
group 'root'
|
group 'root'
|
||||||
|
|
Loading…
Reference in New Issue