From 8f0699b906f470e985efd4cebb12a73de330651d Mon Sep 17 00:00:00 2001 From: legitbox <84281752+legitbox@users.noreply.github.com> Date: Fri, 30 Aug 2024 03:01:43 +0300 Subject: [PATCH 1/2] Update autoinstall.sh --- scripts/autoinstall.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/autoinstall.sh b/scripts/autoinstall.sh index 267a760b3..7a676388d 100644 --- a/scripts/autoinstall.sh +++ b/scripts/autoinstall.sh @@ -46,21 +46,21 @@ setup_arch() { # Detect the Linux distribution if [ -f /etc/os-release ]; then . /etc/os-release - case $ID in - ubuntu|debian) + case $ID_LIKE in + *debian*|*ubuntu*) echo "Detected Debian/Ubuntu based system." setup_debian ;; - fedora) + *fedora*) echo "Detected Fedora based system." setup_fedora ;; - arch) + *arch*) echo "Detected Arch based system." setup_arch ;; *) - echo "Unsupported Linux distribution: $ID" + echo "Unsupported Linux distribution: $ID_LIKE" exit 1 ;; esac @@ -85,3 +85,4 @@ pip install endstone # Run 'endstone' endstone + From 57af0e5b51f4bc09aa2dec2e8a649dfdcad45036 Mon Sep 17 00:00:00 2001 From: legitbox <84281752+legitbox@users.noreply.github.com> Date: Fri, 30 Aug 2024 03:09:52 +0300 Subject: [PATCH 2/2] Update autoinstall.sh fixed line 4, everything is fine now, also updated to use ID_LIKE instead of ID --- scripts/autoinstall.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/autoinstall.sh b/scripts/autoinstall.sh index 7a676388d..1d4eac36f 100644 --- a/scripts/autoinstall.sh +++ b/scripts/autoinstall.sh @@ -1,7 +1,6 @@ #!/bin/bash # Made by @legitbox, this creature will auto install the endstone server software depending on what server os you are using -# WARNING! Doesn't support any distros that are based on the supported oses # Define the virtual environment directory