You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
444 B
Bash
25 lines
444 B
Bash
#!/bin/bash
|
|
|
|
cd ~
|
|
|
|
# Install the required packages
|
|
sudo apt update -y
|
|
sudo apt install -y git curl wget nodejs npm
|
|
|
|
git clone https://git.bpfilip.dk/fbp/remote-relay.git
|
|
|
|
sudo chown -R pi:pi ~/remote-relay
|
|
|
|
pushd ~/remote-relay
|
|
|
|
git pull
|
|
|
|
npm install
|
|
|
|
sudo cp remote-relay.service /etc/systemd/system/remote-relay.service
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable remote-relay.service
|
|
sudo systemctl restart remote-relay.service
|
|
|
|
popd
|