File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,14 @@ elif [ "${OS}" = "Linux" ] ; then
2020 DIST=$( cat /etc/fedora-release | awk ' {print $1}' )
2121 REV=$( cat /etc/fedora-release | sed s/.* release\ // | sed s/\ .* //)
2222
23+ elif [ -f /etc/cloudlinux-release ] ; then
24+ DIST=" CloudLinux"
25+ if [ " $( cat /etc/cloudlinux-release) " = " CloudLinux release 10" ]; then
26+ REV=$( cldetect --detect-os | sed ' s/CloudLinux //' ) ;
27+ else
28+ REV=$( cat /etc/cloudlinux-release | sed s/.* release\ // | sed s/\ .* //) ; fi
29+ IGNORE_OS_RELEASE=1
30+
2331 elif [ -f /etc/redhat-release ] ; then
2432 DIST=$( cat /etc/redhat-release | awk ' {print $1}' )
2533 if [ " ${DIST} " = " CentOS" ]; then
@@ -45,12 +53,12 @@ elif [ "${OS}" = "Linux" ] ; then
4553 REV=$( cat /etc/redhat-release | sed s/.* release\ // | sed s/\ .* //)
4654
4755 elif [ -f /etc/almalinux-release ] ; then
48- DIST=' AlmaLinux'
56+ DIST=" AlmaLinux"
4957 # PSEUDONAME=$(cat /etc/almalinux-release | sed s/.*\(// | sed s/\)//)
5058 REV=$( cat /etc/almalinux-release | sed s/.* release\ // | sed s/\ .* //)
5159
5260 elif [ -f /etc/mandrake-release ] ; then
53- DIST=' Mandrake'
61+ DIST=" Mandrake"
5462 # PSEUDONAME=$(cat /etc/mandrake-release | sed s/.*\(// | sed s/\)//)
5563 REV=$( cat /etc/mandrake-release | sed s/.* release\ // | sed s/\ .* //)
5664
You can’t perform that action at this time.
0 commit comments