FIX: Fix deploy config
This commit is contained in:
parent
cd6bf4e74f
commit
5a61e459d4
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"appId": "4ad379bb-0a97-45da-af44-f090aee3b40d"
|
||||||
|
}
|
|
@ -3,8 +3,8 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
sudo pip install paho-mqtt
|
sudo pip install paho-mqtt
|
||||||
sudo sed -i "s/appName/$1/g" /usr/local/sdt/app/$1/example-app.service
|
sudo sed -i "s/appName/$1_$2/g" /usr/local/sdt/app/$1_$2/example-app.service
|
||||||
sudo cp /usr/local/sdt/app/$1/example-app.service /etc/systemd/system/$1.service
|
sudo cp /usr/local/sdt/app/$1_$2/example-app.service /etc/systemd/system/$1.service
|
||||||
sudo systemctl start $1
|
sudo systemctl start $1
|
||||||
sudo systemctl enable $1
|
sudo systemctl enable $1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue