Update update.sh

This commit is contained in:
dinger1986
2023-07-04 12:11:18 +01:00
committed by GitHub
parent 97b44c5f9d
commit 783e1f8fcf

View File

@@ -12,8 +12,8 @@ if [ $RDLATEST == $RDCURRENT ]; then
exit 0 exit 0
fi fi
sudo systemctl stop rustdesk-hbbs.service sudo systemctl stop rustdeskhbbs.service
sudo systemctl stop rustdesk-hbbr.service sudo systemctl stop rustdeskhbbr.service
sleep 20 sleep 20
ARCH=$(uname -m) ARCH=$(uname -m)
@@ -107,11 +107,11 @@ 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 systemctl start rustdesk-hbbs.service sudo systemctl start rustdeskhbbs.service
sudo systemctl start rustdesk-hbbr.service sudo systemctl start rustdeskhbbr.service
while ! [[ $CHECK_RUSTDESK_READY ]]; do while ! [[ $CHECK_RUSTDESK_READY ]]; do
CHECK_RUSTDESK_READY=$(sudo systemctl status rustdesk-hbbr.service | grep "Active: active (running)") CHECK_RUSTDESK_READY=$(sudo systemctl status rustdeskhbbr.service | grep "Active: active (running)")
echo -ne "Rustdesk Relay not ready yet...${NC}\n" echo -ne "Rustdesk Relay not ready yet...${NC}\n"
sleep 3 sleep 3
done done