mirror of
https://github.com/techahold/rustdeskinstall.git
synced 2025-05-12 23:19:19 +02:00
Update update.sh
This commit is contained in:
parent
2457f046e8
commit
0f04e202ae
14
update.sh
14
update.sh
@ -60,15 +60,19 @@ fi
|
||||
# Setup prereqs for server
|
||||
# common named prereqs
|
||||
PREREQ="curl wget unzip tar"
|
||||
PREREQDEB="dnsutils"
|
||||
PREREQRPM="bind-utils"
|
||||
|
||||
echo "Installing prerequisites"
|
||||
if [ "${ID}" = "debian" ] || [ "$OS" = "Ubuntu" ] || [ "$OS" = "Debian" ] || [ "${UPSTREAM_ID}" = "ubuntu" ] || [ "${UPSTREAM_ID}" = "debian" ]; then
|
||||
PREREQ+=" dnsutils"
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y "${PREREQ}" # git
|
||||
elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhel" ]; then
|
||||
PREREQ+=" bind-utils"
|
||||
sudo apt-get install -y ${PREREQ} ${PREREQDEB} # git
|
||||
elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhel" ] ; then
|
||||
# opensuse 15.4 fails to run the relay service and hangs waiting for it
|
||||
# needs more work before it can be enabled
|
||||
# || [ "${UPSTREAM_ID}" = "suse" ]
|
||||
sudo yum update -y
|
||||
sudo yum install -y "${PREREQ}" # git
|
||||
sudo yum install -y ${PREREQ} ${PREREQRPM} # git
|
||||
else
|
||||
echo "Unsupported OS"
|
||||
# here you could ask the user for permission to try and install anyway
|
||||
|
Loading…
x
Reference in New Issue
Block a user