mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
Merge branch 'Vyrus-001-main-patch-43256' into 'main'
adding prototype script to install / run a veilid-server node within a unifyos... See merge request veilid/veilid!301
This commit is contained in:
commit
20e5df6564
18
scripts/unifios_install.sh
Normal file
18
scripts/unifios_install.sh
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# install veilid via the debian package method
|
||||
wget -O- https://packages.veilid.net/gpg/veilid-packages-key.public | sudo gpg --dearmor -o /usr/share/keyrings/veilid-packages-keyring.gpg
|
||||
echo "deb [arch=arm64 signed-by=/usr/share/keyrings/veilid-packages-keyring.gpg] https://packages.veilid.net/apt stable main" | sudo tee /etc/apt/sources.list.d/veilid.list 1>/dev/null
|
||||
apt update
|
||||
apt install veilid-server veilid-cli
|
||||
|
||||
# install unifios-utilities (this allows us to enable "on boot" scripts)
|
||||
curl -fsL "https://raw.githubusercontent.com/unifi-utilities/unifios-utilities/HEAD/on-boot-script/remote_install.sh" | /bin/bash
|
||||
|
||||
# create an on-boot script that will start veilid-server when this device is first booted, then start the server
|
||||
cat > /data/on_boot.d/veilid.sh<< EOF
|
||||
#!/bin/bash
|
||||
sudo -u veilid veilid-server &
|
||||
EOF
|
||||
chmod +x /data/on_boot.d/veilid.sh
|
||||
./data/on_boot.d/veilid.sh
|
Loading…
Reference in New Issue
Block a user