summaryrefslogtreecommitdiff
path: root/scripts/rustdesk-arch.sh.php
blob: c577ab92489a233ca542102db55aefc9ccfff473 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# version archlinux

url=<?= $url ?>rustdesk.tar.zst
file=/tmp/rustdesk.tar.zst
config=<?= $config ?>

if [ ! -f $file ]; then
    wget -O $file $url || exit 1
fi

sudo pacman -U $file --noconfirm || exit 1
sudo rustdesk --config $config || exit 1

rustdesk &