Easy install Script for Rustdesk

prolly...so it wont break

as i understand this shall be executed by an administrator on the clients, but without root sudo, the commands are unsuccessful.
also on line 97, the `${uname}:${uname}` makes sense on most single user systems, but on a working enviroment, where multiple people login on a PC via ldap, by default users are on in the group, named the same as the username.......so that breaks as well but did no change it...yet, for me `${uname}:sudo` worked
(tried on ubuntu 20)

authored by Hekuran and committed by GitHub ff58ef5a bd6d0931

Changed files
+3 -3
+3 -3
linuxclientinstall.sh
··· 60 esac 61 62 rustdesk --password ${admintoken} 63 - pkill -f "rustdesk" 64 65 # Setup Rustdesk in user profile 66 rustdesktoml2a="$(cat << EOF ··· 94 )" 95 echo "${rustdesktoml2b}" | sudo tee /root/.config/rustdesk/RustDesk2.toml > /dev/null 96 97 - chown ${uname}:${uname} /home/${uname}/.config/rustdesk/RustDesk2.toml 98 99 100 - systemctl restart rustdesk 101 102 echo "ID & Password for Rustdesk ${uname} are:" 103 grep -w id /home/${uname}/.config/rustdesk/RustDesk.toml
··· 60 esac 61 62 rustdesk --password ${admintoken} 63 + sudo pkill -f "rustdesk" 64 65 # Setup Rustdesk in user profile 66 rustdesktoml2a="$(cat << EOF ··· 94 )" 95 echo "${rustdesktoml2b}" | sudo tee /root/.config/rustdesk/RustDesk2.toml > /dev/null 96 97 + sudo chown ${uname}:${uname} /home/${uname}/.config/rustdesk/RustDesk2.toml 98 99 100 + sudo systemctl restart rustdesk 101 102 echo "ID & Password for Rustdesk ${uname} are:" 103 grep -w id /home/${uname}/.config/rustdesk/RustDesk.toml