mirror of
https://github.com/techahold/rustdeskinstall.git
synced 2025-08-09 08:31:21 +02:00
Update install.sh
This commit is contained in:
parent
706bf581c5
commit
dbd903976d
@ -61,19 +61,19 @@ PREREQ1="curl"
|
|||||||
PREREQ2="wget"
|
PREREQ2="wget"
|
||||||
PREREQ3="unzip"
|
PREREQ3="unzip"
|
||||||
PREREQ4="tar"
|
PREREQ4="tar"
|
||||||
|
PREREQDEB="dnsutils"
|
||||||
|
PREREQRPM="bind-utils"
|
||||||
|
|
||||||
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
|
||||||
PREREQ+=" dnsutils"
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y "${PREREQ1}" "${PREREQ2}" "${PREREQ3}" # git
|
sudo apt-get install -y "${PREREQ1}" "${PREREQ2}" "${PREREQ3}" "${PREREQ4}" "${PREREQDEB}" # git
|
||||||
elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhel" ] ; then
|
elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhel" ] ; then
|
||||||
# opensuse 15.4 fails to run the relay service and hangs waiting for it
|
# opensuse 15.4 fails to run the relay service and hangs waiting for it
|
||||||
# needs more work before it can be enabled
|
# needs more work before it can be enabled
|
||||||
# || [ "${UPSTREAM_ID}" = "suse" ]
|
# || [ "${UPSTREAM_ID}" = "suse" ]
|
||||||
PREREQ+=" bind-utils"
|
|
||||||
sudo yum update -y
|
sudo yum update -y
|
||||||
sudo yum install -y "${PREREQ}" # git
|
sudo apt-get install -y "${PREREQ1}" "${PREREQ2}" "${PREREQ3}" "${PREREQ4}" "${PREREQRPM}" # git
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user