support Devuan in install scripts

This commit is contained in:
Marcel Hernandez 2024-10-29 21:27:40 +01:00
parent 3b1883444d
commit 3f52bf2d83
No known key found for this signature in database
GPG key ID: 07753E0BB2414BB8
5 changed files with 15 additions and 0 deletions

View file

@ -13,6 +13,9 @@ if [[ ! -f "/etc/os-release" ]]; then
fi fi
ID=$(bash -c 'source /etc/os-release && echo $ID') ID=$(bash -c 'source /etc/os-release && echo $ID')
if [[ "${ID}" == "devuan" ]]; then
ID="debian"
fi
if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported" echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
exit 1 exit 1

View file

@ -13,6 +13,9 @@ if [[ ! -f "/etc/os-release" ]]; then
fi fi
ID=$(bash -c 'source /etc/os-release && echo $ID') ID=$(bash -c 'source /etc/os-release && echo $ID')
if [[ "${ID}" == "devuan" ]]; then
ID="debian"
fi
if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported" echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
exit 1 exit 1

View file

@ -14,6 +14,9 @@ if [[ ! -f "/etc/os-release" ]]; then
fi fi
ID=$(bash -c 'source /etc/os-release && echo $ID') ID=$(bash -c 'source /etc/os-release && echo $ID')
if [[ "${ID}" == "devuan" ]]; then
ID="debian"
fi
if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported" echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
exit 1 exit 1

View file

@ -14,6 +14,9 @@ if [[ ! -f "/etc/os-release" ]]; then
fi fi
ID=$(bash -c 'source /etc/os-release && echo $ID') ID=$(bash -c 'source /etc/os-release && echo $ID')
if [[ "${ID}" == "devuan" ]]; then
ID="debian"
fi
if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported" echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
exit 1 exit 1

View file

@ -14,6 +14,9 @@ if [[ ! -f "/etc/os-release" ]]; then
fi fi
ID=$(bash -c 'source /etc/os-release && echo $ID') ID=$(bash -c 'source /etc/os-release && echo $ID')
if [[ "${ID}" == "devuan" ]]; then
ID="debian"
fi
if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported" echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
exit 1 exit 1