Add support for AlmaLinux
This commit is contained in:
@@ -62,6 +62,7 @@ Script has been tested to work with following distros:
|
|||||||
- CentOS 8 (note LVM file level restore issue from below)
|
- CentOS 8 (note LVM file level restore issue from below)
|
||||||
- Debian 10
|
- Debian 10
|
||||||
- Ubuntu 20.04
|
- Ubuntu 20.04
|
||||||
|
- AlmaLinux 8 (early testing phase)
|
||||||
|
|
||||||
Installation works but not tested frequently:
|
Installation works but not tested frequently:
|
||||||
- Debian 8
|
- Debian 8
|
||||||
|
@@ -886,8 +886,8 @@ function CheckOS {
|
|||||||
OSVERSION=$(grep ^VERSION_ID /etc/os-release | cut -d'=' -f2 | grep -Eo "[0-9]{1,2}" | head -1)
|
OSVERSION=$(grep ^VERSION_ID /etc/os-release | cut -d'=' -f2 | grep -Eo "[0-9]{1,2}" | head -1)
|
||||||
OSNAME=$(grep ^NAME /etc/os-release | cut -d'=' -f2 | sed 's/"//g' | awk '{print $1}')
|
OSNAME=$(grep ^NAME /etc/os-release | cut -d'=' -f2 | sed 's/"//g' | awk '{print $1}')
|
||||||
|
|
||||||
if [[ ! $OSNAME =~ ^(Debian|Ubuntu|CentOS)$ ]]; then
|
if [[ ! $OSNAME =~ ^(Debian|Ubuntu|CentOS|AlmaLinux)$ ]]; then
|
||||||
printfail "Only Ubuntu/Debian/CentOS supported"
|
printfail "Only Ubuntu/Debian/CentOS/AlmaLinux supported"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -896,6 +896,12 @@ function CheckOS {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# for future if/when something above 8 is released
|
||||||
|
if [[ $OSNAME == "AlmaLinux" ]] && [[ $OSVERSION != "8" ]]; then
|
||||||
|
printfail "Only AlmaLinux 8 supported"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $OSNAME == "Debian" ]] && [[ ! $OSVERSION =~ ^(8|9|10)$ ]]; then
|
if [[ $OSNAME == "Debian" ]] && [[ ! $OSVERSION =~ ^(8|9|10)$ ]]; then
|
||||||
printfail "Only Debian 8/9/10 supported"
|
printfail "Only Debian 8/9/10 supported"
|
||||||
exit 1
|
exit 1
|
||||||
|
Reference in New Issue
Block a user