Merge "Fix tr syntax in 51-hosts"
This commit is contained in:
commit
86dfef1360
|
@ -33,7 +33,7 @@ write_entries() {
|
|||
ENTRIES=$(os-apply-config --key hosts --type raw --key-default '' | tr '[A-Z]' '[a-z]')
|
||||
if [ ! -z "$ENTRIES" ]; then
|
||||
# cloud-init files are /etc/cloud/templates/hosts.OSNAME.tmpl
|
||||
DIST=$(lsb_release -is | tr -s [A-Z] [a-z])
|
||||
DIST=$(lsb_release -is | tr -s '[A-Z]' '[a-z]')
|
||||
case $DIST in
|
||||
fedora|redhatenterpriseserver)
|
||||
name="redhat"
|
||||
|
|
Loading…
Reference in New Issue