From 3b61e2b7ac716d33beb25972092a8ecdbf03e0cd Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Mon, 10 Jun 2024 11:54:08 +0900 Subject: [PATCH] Add condition for `Ubuntu 24.04`. --- cookbooks/loki/attributes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/loki/attributes.rb b/cookbooks/loki/attributes.rb index 9fed441..90fb1d5 100644 --- a/cookbooks/loki/attributes.rb +++ b/cookbooks/loki/attributes.rb @@ -2,7 +2,7 @@ # Specifying the default settings: # ------------------------------------------- case run_command('grep VERSION_ID /etc/os-release | awk -F\" \'{print $2}\'').stdout.chomp -when "20.04", "22.04" +when "20.04", "22.04", "24.04" cmd = 'LANG=C ip a | grep "inet " | grep -v -E "(127|172)" | cut -d" " -f6 | perl -pe "s/\/.+//g"' when "18.04"