example-app/install.sh

11 lines
259 B
Bash
Raw Permalink Normal View History

2023-10-23 07:56:29 +00:00
#!/bin/bash
set -e
2023-11-06 07:11:03 +00:00
sudo pip install paho-mqtt
2023-11-29 04:43:22 +00:00
sudo sed -i "s/appName/$1_$2/g" /usr/local/sdt/app/$1_$2/example-app.service
sudo cp /usr/local/sdt/app/$1_$2/example-app.service /etc/systemd/system/$1.service
2023-10-23 07:56:29 +00:00
sudo systemctl start $1
sudo systemctl enable $1