Update install.sh
This commit is contained in:
+4
-3
@@ -173,15 +173,16 @@ Please report this to: https://github.com/rustdesk/rustdesk-server-pro/issues"
|
|||||||
then
|
then
|
||||||
ACTUAL_TAR_NAME=arm64v8
|
ACTUAL_TAR_NAME=arm64v8
|
||||||
fi
|
fi
|
||||||
|
ACTUAL_TAR_NAME=${ACTUAL_TAR_NAME}${TLS}
|
||||||
# Download
|
# Download
|
||||||
if ! curl -fSLO --retry 3 https://github.com/rustdesk/rustdesk-server-pro/releases/download/"${RDLATEST}"/rustdesk-server-linux-"${ACTUAL_TAR_NAME}""${TLS}".tar.gz
|
if ! curl -fSLO --retry 3 https://github.com/rustdesk/rustdesk-server-pro/releases/download/"${RDLATEST}"/rustdesk-server-linux-"${ACTUAL_TAR_NAME}".tar.gz
|
||||||
then
|
then
|
||||||
msg_box "Sorry, the installation package failed to download.
|
msg_box "Sorry, the installation package failed to download.
|
||||||
This might be temporary, so please try to run the installation script again."
|
This might be temporary, so please try to run the installation script again."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# Extract, move in place, and make it executable
|
# Extract, move in place, and make it executable
|
||||||
tar -xf rustdesk-server-linux-"${ACTUAL_TAR_NAME}""${TLS}".tar.gz
|
tar -xf rustdesk-server-linux-"${ACTUAL_TAR_NAME}".tar.gz
|
||||||
# Set permissions
|
# Set permissions
|
||||||
if [ -n "$RUSTDESK_USER" ]
|
if [ -n "$RUSTDESK_USER" ]
|
||||||
then
|
then
|
||||||
@@ -198,7 +199,7 @@ This might be temporary, so please try to run the installation script again."
|
|||||||
mv "${ACTUAL_TAR_NAME}"/hbbs /usr/bin/
|
mv "${ACTUAL_TAR_NAME}"/hbbs /usr/bin/
|
||||||
mv "${ACTUAL_TAR_NAME}"/rustdesk-utils /usr/bin/
|
mv "${ACTUAL_TAR_NAME}"/rustdesk-utils /usr/bin/
|
||||||
rm -rf "$RUSTDESK_INSTALL_DIR"/"${ACTUAL_TAR_NAME:?}"
|
rm -rf "$RUSTDESK_INSTALL_DIR"/"${ACTUAL_TAR_NAME:?}"
|
||||||
rm -rf rustdesk-server-linux-"${ACTUAL_TAR_NAME}""${TLS}".tar.gz
|
rm -rf rustdesk-server-linux-"${ACTUAL_TAR_NAME}".tar.gz
|
||||||
chmod +x /usr/bin/hbbs
|
chmod +x /usr/bin/hbbs
|
||||||
chmod +x /usr/bin/hbbr
|
chmod +x /usr/bin/hbbr
|
||||||
chmod +x /usr/bin/rustdesk-utils
|
chmod +x /usr/bin/rustdesk-utils
|
||||||
|
|||||||
Reference in New Issue
Block a user