mirror of
https://github.com/techahold/rustdeskinstall.git
synced 2025-05-13 15:38:59 +02:00
conform case
This commit is contained in:
parent
54944d2014
commit
fc9a935121
10
install.sh
10
install.sh
@ -81,19 +81,19 @@ fi
|
|||||||
|
|
||||||
# Setup prereqs for server
|
# Setup prereqs for server
|
||||||
# common named prereqs
|
# common named prereqs
|
||||||
prereq="curl wget unzip tar"
|
PREREQ="curl wget unzip tar"
|
||||||
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"
|
PREREQ+=" dnsutils"
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y "${prereq}" # git
|
sudo apt-get install -y "${PREREQ}" # 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"
|
PREREQ+=" bind-utils"
|
||||||
sudo yum update -y
|
sudo yum update -y
|
||||||
sudo yum install -y "${prereq}" # git
|
sudo yum install -y "${PREREQ}" # 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
|
||||||
|
10
update.sh
10
update.sh
@ -59,16 +59,16 @@ fi
|
|||||||
|
|
||||||
# Setup prereqs for server
|
# Setup prereqs for server
|
||||||
# common named prereqs
|
# common named prereqs
|
||||||
prereq="curl wget unzip tar"
|
PREREQ="curl wget unzip tar"
|
||||||
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"
|
PREREQ+=" dnsutils"
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y "${prereq}" # git
|
sudo apt-get install -y "${PREREQ}" # git
|
||||||
elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhel" ]; then
|
elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhel" ]; then
|
||||||
prereq+=" bind-utils"
|
PREREQ+=" bind-utils"
|
||||||
sudo yum update -y
|
sudo yum update -y
|
||||||
sudo yum install -y "${prereq}" # git
|
sudo yum install -y "${PREREQ}" # 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