Skip to content

Commit

Permalink
Update update-hosts.sh.j2
Browse files Browse the repository at this point in the history
  • Loading branch information
gmauro authored Jan 14, 2021
1 parent 34eb0ca commit b7f073a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/update-hosts.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ mv $tmp /etc/hosts

echo "$(cat /etc/hosts | grep {{ cloud_network_prefix }} | awk '{print $2}' | paste -s -d,) cloud" > /etc/genders

for group in $(cat /etc/hosts | grep {{ cloud_network_prefix }} | awk '{print $3}' | awk -F- '{print $2}' | sort -u); do
for group in $(cat /etc/hosts | grep {{ cloud_network_prefix }} | awk '{print $2}' | awk -F- '{print $3}' | sort -u); do
echo "$(cat /etc/hosts | grep {{ cloud_network_prefix }} | awk '{print $2}' | grep $group | paste -s -d,) $group" >> /etc/genders
done

0 comments on commit b7f073a

Please sign in to comment.