Compare commits

...

10 Commits
1.3.6 ... 1.4.8

Author SHA1 Message Date
RustDesk
5f4e47055d Update terms 2024-11-22 15:01:44 +08:00
RustDesk
e478d266b0 Update install.sh 2024-11-07 08:59:17 +08:00
RustDesk
5bb76c2e9d Update update.sh 2024-08-18 22:15:27 +08:00
RustDesk
5696f381c8 Update install.sh 2024-08-18 22:14:06 +08:00
RustDesk
2e0388ec0c Update update.sh 2024-08-18 21:40:47 +08:00
RustDesk
40855c65a3 Update install.sh 2024-08-18 21:37:23 +08:00
RustDesk
4f46a53c77 Update install.sh 2024-08-18 21:35:12 +08:00
RustDesk
43a8b5ce1a Merge pull request #262 from dinger1986/main
Update install.sh
2024-05-31 23:47:37 +08:00
dinger1986
724593a77b Update update.sh 2024-05-31 15:48:38 +01:00
dinger1986
6a9a726a65 Update install.sh 2024-05-31 15:34:25 +01:00
3 changed files with 40 additions and 17 deletions

View File

@@ -12,6 +12,13 @@
################################################################################################################## ##################################################################################################################
TLS=""
if command -v ldconfig &> /dev/null; then
if ldconfig -p | grep -q "libssl.so.3"; then
TLS="-nativetls"
fi
fi
# Install curl and whiptail if needed # Install curl and whiptail if needed
if [ ! -x "$(command -v curl)" ] || [ ! -x "$(command -v whiptail)" ] if [ ! -x "$(command -v curl)" ] || [ ! -x "$(command -v whiptail)" ]
then then
@@ -166,6 +173,7 @@ 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}".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
@@ -189,14 +197,17 @@ This might be temporary, so please try to run the installation script again."
fi fi
mv "${ACTUAL_TAR_NAME}"/hbbr /usr/bin/ mv "${ACTUAL_TAR_NAME}"/hbbr /usr/bin/
mv "${ACTUAL_TAR_NAME}"/hbbs /usr/bin/ mv "${ACTUAL_TAR_NAME}"/hbbs /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}".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
if [ -n "$RUSTDESK_USER" ] if [ -n "$RUSTDESK_USER" ]
then then
chown "$RUSTDESK_USER":"$RUSTDESK_USER" -R /usr/bin/hbbr chown "$RUSTDESK_USER":"$RUSTDESK_USER" -R /usr/bin/hbbr
chown "$RUSTDESK_USER":"$RUSTDESK_USER" -R /usr/bin/hbbr chown "$RUSTDESK_USER":"$RUSTDESK_USER" -R /usr/bin/hbbs
chown "$RUSTDESK_USER":"$RUSTDESK_USER" -R /usr/bin/rustdesk-utils
fi fi
else else
print_text_in_color "$IGreen" "Rustdesk server already installed." print_text_in_color "$IGreen" "Rustdesk server already installed."
@@ -359,7 +370,7 @@ case "$choice" in
while : while :
do do
RUSTDESK_DOMAIN=$(input_box_flow "Please enter your domain, e.g. rustdesk.example.com") RUSTDESK_DOMAIN=$(input_box_flow "Please enter your domain, e.g. rustdesk.example.com")
DIG=$(dig +short "${RUSTDESK_DOMAIN}" @resolver1.opendns.com) DIG=$(dig +short "${RUSTDESK_DOMAIN}" @8.8.8.8)
if ! [[ "$RUSTDESK_DOMAIN" =~ ^[a-zA-Z0-9]+([a-zA-Z0-9.-]*[a-zA-Z0-9]+)?$ ]] if ! [[ "$RUSTDESK_DOMAIN" =~ ^[a-zA-Z0-9]+([a-zA-Z0-9.-]*[a-zA-Z0-9]+)?$ ]]
then then
msg_box "$RUSTDESK_DOMAIN is an invalid domain/DNS address! Please try again." msg_box "$RUSTDESK_DOMAIN is an invalid domain/DNS address! Please try again."
@@ -369,7 +380,7 @@ case "$choice" in
done done
# Check if DNS are forwarded correctly # Check if DNS are forwarded correctly
if dig +short "$RUSTDESK_DOMAIN" @resolver1.opendns.com | grep -q "$WANIP4" if dig +short "$RUSTDESK_DOMAIN" @8.8.8.8 | grep -q "$WANIP4"
then then
print_text_in_color "$IGreen" "DNS seems correct when checking with dig!" print_text_in_color "$IGreen" "DNS seems correct when checking with dig!"
else else

1
terms
View File

@@ -13,6 +13,7 @@ IMPORTANT: PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE AGREEMENT") CAR
3. License Key: 3. License Key:
a) Purslane Limited will provide you with a unique license key ("License Key") to activate the Software on a specific server (machine). a) Purslane Limited will provide you with a unique license key ("License Key") to activate the Software on a specific server (machine).
b) You agree that the License Key provided to you by Purslane Limited will be used exclusively on the designated server (machine) and will not be shared, transferred, or used on any other server (machine) without explicit written permission from Purslane Limited. b) You agree that the License Key provided to you by Purslane Limited will be used exclusively on the designated server (machine) and will not be shared, transferred, or used on any other server (machine) without explicit written permission from Purslane Limited.
c) Reselling license and custom client are not allowed.
4. Term and Billing: 4. Term and Billing:
a) The license term for the Software shall be one (1) year, starting from the date of purchase. a) The license term for the Software shall be one (1) year, starting from the date of purchase.

View File

@@ -3,6 +3,13 @@
# shellcheck disable=2034,2059,2164 # shellcheck disable=2034,2059,2164
true true
TLS=""
if command -v ldconfig &> /dev/null; then
if ldconfig -p | grep -q "libssl.so.3"; then
TLS="-nativetls"
fi
fi
# Get username # Get username
usern=$(whoami) # not used btw ... yet usern=$(whoami) # not used btw ... yet
@@ -84,33 +91,37 @@ rm -rf static/
echo "Upgrading RustDesk Server" echo "Upgrading RustDesk Server"
if [ "${ARCH}" = "x86_64" ] ; then if [ "${ARCH}" = "x86_64" ] ; then
wget https://github.com/rustdesk/rustdesk-server-pro/releases/download/${RDLATEST}/rustdesk-server-linux-amd64.tar.gz wget https://github.com/rustdesk/rustdesk-server-pro/releases/download/${RDLATEST}/rustdesk-server-linux-amd64${TLS}.tar.gz
tar -xf rustdesk-server-linux-amd64.tar.gz tar -xf rustdesk-server-linux-amd64${TLS}.tar.gz
mv amd64/static /var/lib/rustdesk-server/ mv amd64${TLS}/static /var/lib/rustdesk-server/
sudo mv amd64/hbbr /usr/bin/ sudo mv amd64${TLS}/hbbr /usr/bin/
sudo mv amd64/hbbs /usr/bin/ sudo mv amd64${TLS}/hbbs /usr/bin/
rm -rf amd64/ sudo mv amd64${TLS}/rustdesk-utils /usr/bin/
rm -rf rustdesk-server-linux-amd64.tar.gz rm -rf amd64${TLS}/
rm -rf rustdesk-server-linux-amd64${TLS}.tar.gz
elif [ "${ARCH}" = "armv7l" ] ; then elif [ "${ARCH}" = "armv7l" ] ; then
wget "https://github.com/rustdesk/rustdesk-server-pro/releases/download/${RDLATEST}/rustdesk-server-linux-armv7.tar.gz" wget "https://github.com/rustdesk/rustdesk-server-pro/releases/download/${RDLATEST}/rustdesk-server-linux-armv7.tar.gz"
tar -xf rustdesk-server-linux-armv7.tar.gz tar -xf rustdesk-server-linux-armv7.tar.gz
mv armv7/static /var/lib/rustdesk-server/ mv armv7/static /var/lib/rustdesk-server/
sudo mv armv7/hbbr /usr/bin/ sudo mv armv7/hbbr /usr/bin/
sudo mv armv7/hbbs /usr/bin/ sudo mv armv7/hbbs /usr/bin/
sudo mv armv7/rustdesk-utils /usr/bin/
rm -rf armv7/ rm -rf armv7/
rm -rf rustdesk-server-linux-armv7.tar.gz rm -rf rustdesk-server-linux-armv7.tar.gz
elif [ "${ARCH}" = "aarch64" ] ; then elif [ "${ARCH}" = "aarch64" ] ; then
wget "https://github.com/rustdesk/rustdesk-server-pro/releases/download/${RDLATEST}/rustdesk-server-linux-arm64v8.tar.gz" wget "https://github.com/rustdesk/rustdesk-server-pro/releases/download/${RDLATEST}/rustdesk-server-linux-arm64v8${TLS}.tar.gz"
tar -xf rustdesk-server-linux-arm64v8.tar.gz tar -xf rustdesk-server-linux-arm64v8${TLS}.tar.gz
mv arm64v8/static /var/lib/rustdesk-server/ mv arm64v8${TLS}/static /var/lib/rustdesk-server/
sudo mv arm64v8/hbbr /usr/bin/ sudo mv arm64v8${TLS}/hbbr /usr/bin/
sudo mv arm64v8/hbbs /usr/bin/ sudo mv arm64v8${TLS}/hbbs /usr/bin/
rm -rf arm64v8/ sudo mv arm64v8${TLS}/rustdesk-utils /usr/bin/
rm -rf rustdesk-server-linux-arm64v8.tar.gz rm -rf arm64v8${TLS}/
rm -rf rustdesk-server-linux-arm64v8${TLS}.tar.gz
fi fi
sudo chmod +x /usr/bin/hbbs sudo chmod +x /usr/bin/hbbs
sudo chmod +x /usr/bin/hbbr sudo chmod +x /usr/bin/hbbr
sudo chmod +x /usr/bin/rustdesk-utils
sudo systemctl start rustdesk-hbbs.service sudo systemctl start rustdesk-hbbs.service
sudo systemctl start rustdesk-hbbr.service sudo systemctl start rustdesk-hbbr.service