case "$name" in
"EnterpriseEnterpriseServer")
name="oel"
- version="${version%%.*}"
;;
"RedHatEnterpriseServer" | "ScientificSL" | "CentOS")
name="rhel"
- version="${version%%.*}"
;;
"SUSE LINUX")
name="sles"
#name=$(head -1 /etc/redhat-release)
name=rhel
version=$(echo "$distroname" |
- sed -e 's/^[^0-9.]*//g' | sed -e 's/[ \.].*//')
+ sed -e 's/^[^0-9.]*//g' | sed -e 's/[ ].*//')
fi
if [ -z "$name" -o -z "$version" ]; then
fatal 1 "I don't know how to determine distro type/version.\nEither update autodetect_distro() or use the --distro argument."
fi
fi
- echo ${name}${version}
+ echo ${name}-${version}
return 0
}