Update convertfromos.sh
This commit is contained in:
parent
783e1f8fcf
commit
2e4f4323c9
@ -1,12 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# This script will do the following to install RustDesk Pro replacing RustDesk Opensource
|
# This script will do the following to install RustDesk Pro replacing RustDesk Opensource
|
||||||
# 1. Install some dependencys
|
# 1. Disable and removes the old services
|
||||||
# 2. Setup ufw firewall if available
|
# 2. Install some dependencys
|
||||||
# 3. Create a Folder /var/lib/rustdesk-server and copy the certs here
|
# 3. Setup ufw firewall if available
|
||||||
# 4. Download and extract RustDesk Pro Services to the above folder
|
# 4. Create a Folder /var/lib/rustdesk-server and copy the certs here
|
||||||
# 5. Create systemd services for hbbs and hbbr
|
# 5. Download and extract RustDesk Pro Services to the above folder
|
||||||
# 6. If you chose Domain, it will install Nginx and certbot, allowing the API to be available on port 443 (https) and get an SSL certificate over port 80, this will autorenew.
|
# 6. Create systemd services for hbbs and hbbr
|
||||||
|
# 7. If you chose Domain, it will install Nginx and certbot, allowing the API to be available on port 443 (https) and get an SSL certificate over port 80, this will autorenew.
|
||||||
|
|
||||||
# Get Username
|
# Get Username
|
||||||
uname=$(whoami)
|
uname=$(whoami)
|
||||||
@ -123,6 +124,7 @@ cd /var/lib/rustdesk-server/ || exit 1
|
|||||||
|
|
||||||
mv /opt/rustdesk/id_* /var/lib/rustdesk-server/
|
mv /opt/rustdesk/id_* /var/lib/rustdesk-server/
|
||||||
|
|
||||||
|
sudo rm -rf /opt/rustdesk
|
||||||
|
|
||||||
#Download latest version of Rustdesk
|
#Download latest version of Rustdesk
|
||||||
RDLATEST=$(curl https://api.github.com/repos/rustdesk/rustdesk-server-pro/releases/latest -s | grep "tag_name"| awk '{print substr($2, 2, length($2)-3) }')
|
RDLATEST=$(curl https://api.github.com/repos/rustdesk/rustdesk-server-pro/releases/latest -s | grep "tag_name"| awk '{print substr($2, 2, length($2)-3) }')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user