„install.sh“ ändern

This commit is contained in:
Yann Mölle 2023-04-17 21:19:33 +02:00
parent ca688a977a
commit 09db15f3b3

View File

@ -9,19 +9,19 @@ fi
# Check which Linux distribution is installed
if [ -f /etc/os-release ]; then
. /etc/os-release
if [[ "$ID" == "ubuntu" ]]; then
if [ "$ID" == "ubuntu" ]; then
echo "Detected Ubuntu."
PACKAGE_MANAGER="apt-get-ubuntu"
elif [[ "$ID" == "opensuse" ]]; then
elif [ "$ID" == "opensuse" ]; then
echo "Detected openSUSE."
PACKAGE_MANAGER="zypper"
elif [[ "$ID" == "debian" ]]; then
elif [ "$ID" == "debian" ]; then
echo "Detected Debian."
PACKAGE_MANAGER="apt-get"
elif [[ "$ID" == "alpine" ]]; then
elif [ "$ID" == "alpine" ]; then
echo "Detected Alpine Linux."
PACKAGE_MANAGER="apk"
elif [[ "$ID" == "centos" ]]; then
elif [ "$ID" == "centos" ]; then
echo "Detected CentOS."
PACKAGE_MANAGER="yum"
else