Skip to content

Commit

Permalink
Autoinstall.sh update (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent authored Aug 30, 2024
2 parents aaed9cd + 57af0e5 commit 1b75bf0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/autoinstall.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -46,21 +45,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
Expand All @@ -85,3 +84,4 @@ pip install endstone

# Run 'endstone'
endstone

0 comments on commit 1b75bf0

Please sign in to comment.