Easy install Script for Rustdesk

Update update.sh

authored by dinger1986 and committed by GitHub 0f04e202 2457f046

Changed files
+9 -5
+9 -5
update.sh
··· 60 60 # Setup prereqs for server 61 61 # common named prereqs 62 62 PREREQ="curl wget unzip tar" 63 + PREREQDEB="dnsutils" 64 + PREREQRPM="bind-utils" 65 + 63 66 echo "Installing prerequisites" 64 67 if [ "${ID}" = "debian" ] || [ "$OS" = "Ubuntu" ] || [ "$OS" = "Debian" ] || [ "${UPSTREAM_ID}" = "ubuntu" ] || [ "${UPSTREAM_ID}" = "debian" ]; then 65 - PREREQ+=" dnsutils" 66 68 sudo apt-get update 67 - sudo apt-get install -y "${PREREQ}" # git 68 - elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhel" ]; then 69 - PREREQ+=" bind-utils" 69 + sudo apt-get install -y ${PREREQ} ${PREREQDEB} # git 70 + elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhel" ] ; then 71 + # opensuse 15.4 fails to run the relay service and hangs waiting for it 72 + # needs more work before it can be enabled 73 + # || [ "${UPSTREAM_ID}" = "suse" ] 70 74 sudo yum update -y 71 - sudo yum install -y "${PREREQ}" # git 75 + sudo yum install -y ${PREREQ} ${PREREQRPM} # git 72 76 else 73 77 echo "Unsupported OS" 74 78 # here you could ask the user for permission to try and install anyway