mirror of
https://github.com/techahold/rustdeskinstall.git
synced 2025-08-08 16:11:19 +02:00
Merge pull request #82 from Klwdie/patch-2
Update linuxclientinstall.sh
This commit is contained in:
commit
754c145b61
@ -55,18 +55,21 @@ else
|
|||||||
VER=$(uname -r)
|
VER=$(uname -r)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Checks the latest version of RustDesk
|
||||||
|
RDLATEST=$(curl https://api.github.com/repos/rustdesk/rustdesk/releases/latest -s | grep "tag_name" | awk -F'"' '{print $4}')
|
||||||
|
|
||||||
# Install RustDesk
|
# Install RustDesk
|
||||||
|
|
||||||
echo "Installing RustDesk"
|
echo "Installing RustDesk"
|
||||||
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
|
||||||
wget https://github.com/rustdesk/rustdesk/releases/download/1.2.3-2/rustdesk-1.2.3-2-x86_64.deb
|
wget https://github.com/rustdesk/rustdesk/releases/download/${RDLATEST}/rustdesk-${RDLATEST}-x86_64.deb
|
||||||
apt-get install -fy ./rustdesk-1.2.3-2-x86_64.deb >/dev/null
|
apt-get install -fy ./rustdesk-${RDLATEST}-x86_64.deb >/dev/null
|
||||||
elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "$OS" = "Fedora Linux" ] || [ "${UPSTREAM_ID}" = "rhel" ]; then
|
elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "$OS" = "Fedora Linux" ] || [ "${UPSTREAM_ID}" = "rhel" ]; then
|
||||||
wget https://github.com/rustdesk/rustdesk/releases/download/1.2.3-2/rustdesk-1.2.3-2.x86_64.rpm
|
wget https://github.com/rustdesk/rustdesk/releases/download/${RDLATEST}/rustdesk-${RDLATEST}.x86_64.rpm
|
||||||
yum localinstall ./rustdesk-1.2.3-2.x86_64.rpm -y >/dev/null
|
yum localinstall ./rustdesk-${RDLATEST}.x86_64.rpm -y >/dev/null
|
||||||
elif [ "${UPSTREAM_ID}" = "suse" ]; then
|
elif [ "${UPSTREAM_ID}" = "suse" ]; then
|
||||||
wget https://github.com/rustdesk/rustdesk/releases/download/1.2.3-2/rustdesk-1.2.3-2.x86_64-suse.rpm
|
wget https://github.com/rustdesk/rustdesk/releases/download/${RDLATEST}/rustdesk-${RDLATEST}.x86_64-suse.rpm
|
||||||
zypper -n install --allow-unsigned-rpm ./rustdesk-1.2.3-2.x86_64-suse.rpm >/dev/null
|
zypper -n install --allow-unsigned-rpm ./rustdesk-${RDLATEST}.x86_64-suse.rpm >/dev/null
|
||||||
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
|
||||||
@ -85,7 +88,8 @@ rustdesk --config $rustdesk_cfg
|
|||||||
|
|
||||||
systemctl restart rustdesk
|
systemctl restart rustdesk
|
||||||
|
|
||||||
|
echo "All done! Please double check the Network settings tab in RustDesk."
|
||||||
|
echo ""
|
||||||
echo "..............................................."
|
echo "..............................................."
|
||||||
# Check if the rustdesk_id is not empty
|
# Check if the rustdesk_id is not empty
|
||||||
if [ -n "$rustdesk_id" ]; then
|
if [ -n "$rustdesk_id" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user