Skip to content

Commit

Permalink
Update update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rustdesk authored Aug 18, 2024
1 parent 5696f38 commit 5bb76c2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ echo "Upgrading RustDesk Server"
if [ "${ARCH}" = "x86_64" ] ; then
wget https://github.com/rustdesk/rustdesk-server-pro/releases/download/${RDLATEST}/rustdesk-server-linux-amd64${TLS}.tar.gz
tar -xf rustdesk-server-linux-amd64${TLS}.tar.gz
mv amd64/static /var/lib/rustdesk-server/
sudo mv amd64/hbbr /usr/bin/
sudo mv amd64/hbbs /usr/bin/
sudo mv amd64/rustdesk-utils /usr/bin/
rm -rf amd64/
mv amd64${TLS}/static /var/lib/rustdesk-server/
sudo mv amd64${TLS}/hbbr /usr/bin/
sudo mv amd64${TLS}/hbbs /usr/bin/
sudo mv amd64${TLS}/rustdesk-utils /usr/bin/
rm -rf amd64${TLS}/
rm -rf rustdesk-server-linux-amd64${TLS}.tar.gz
elif [ "${ARCH}" = "armv7l" ] ; then
wget "https://github.com/rustdesk/rustdesk-server-pro/releases/download/${RDLATEST}/rustdesk-server-linux-armv7.tar.gz"
Expand All @@ -111,11 +111,11 @@ rm -rf rustdesk-server-linux-armv7.tar.gz
elif [ "${ARCH}" = "aarch64" ] ; then
wget "https://github.com/rustdesk/rustdesk-server-pro/releases/download/${RDLATEST}/rustdesk-server-linux-arm64v8${TLS}.tar.gz"
tar -xf rustdesk-server-linux-arm64v8${TLS}.tar.gz
mv arm64v8/static /var/lib/rustdesk-server/
sudo mv arm64v8/hbbr /usr/bin/
sudo mv arm64v8/hbbs /usr/bin/
sudo mv arm64v8/rustdesk-utils /usr/bin/
rm -rf arm64v8/
mv arm64v8${TLS}/static /var/lib/rustdesk-server/
sudo mv arm64v8${TLS}/hbbr /usr/bin/
sudo mv arm64v8${TLS}/hbbs /usr/bin/
sudo mv arm64v8${TLS}/rustdesk-utils /usr/bin/
rm -rf arm64v8${TLS}/
rm -rf rustdesk-server-linux-arm64v8${TLS}.tar.gz
fi

Expand Down

0 comments on commit 5bb76c2

Please sign in to comment.