mirror of
https://github.com/techahold/rustdeskinstall.git
synced 2025-12-21 16:11:15 +01:00
Added arch as a supported OS
This commit is contained in:
@@ -60,6 +60,7 @@ fi
|
|||||||
PREREQ="curl wget unzip tar"
|
PREREQ="curl wget unzip tar"
|
||||||
PREREQDEB="dnsutils"
|
PREREQDEB="dnsutils"
|
||||||
PREREQRPM="bind-utils"
|
PREREQRPM="bind-utils"
|
||||||
|
PREREQARCH="bind"
|
||||||
|
|
||||||
echo "Installing prerequisites"
|
echo "Installing prerequisites"
|
||||||
if [ "${ID}" = "debian" ] || [ "$OS" = "Ubuntu" ] || [ "$OS" = "Debian" ] || [ "${UPSTREAM_ID}" = "ubuntu" ] || [ "${UPSTREAM_ID}" = "debian" ]; then
|
if [ "${ID}" = "debian" ] || [ "$OS" = "Ubuntu" ] || [ "$OS" = "Debian" ] || [ "${UPSTREAM_ID}" = "ubuntu" ] || [ "${UPSTREAM_ID}" = "debian" ]; then
|
||||||
@@ -71,6 +72,9 @@ elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhe
|
|||||||
# || [ "${UPSTREAM_ID}" = "suse" ]
|
# || [ "${UPSTREAM_ID}" = "suse" ]
|
||||||
sudo yum update -y
|
sudo yum update -y
|
||||||
sudo yum install -y ${PREREQ} ${PREREQRPM} # git
|
sudo yum install -y ${PREREQ} ${PREREQRPM} # git
|
||||||
|
elif [ "${ID}" = "arch" ]; then
|
||||||
|
sudo pacman -Syu
|
||||||
|
sudo pacman -S ${PREREQ} ${PREREQARCH}
|
||||||
else
|
else
|
||||||
echo "Unsupported OS"
|
echo "Unsupported OS"
|
||||||
# here you could ask the user for permission to try and install anyway
|
# here you could ask the user for permission to try and install anyway
|
||||||
|
|||||||
Reference in New Issue
Block a user