Compare commits

...

3 Commits
test1 ... main

Author SHA1 Message Date
이수준 5a61e459d4 FIX: Fix deploy config 2023-11-29 13:43:22 +09:00
sujune cd6bf4e74f Update install.sh 2023-11-06 07:11:03 +00:00
ssung 7208ac80e2 ADD: Add test code. 2023-10-23 16:58:29 +09:00
3 changed files with 15 additions and 2 deletions

3
certs/ID.json Normal file
View File

@ -0,0 +1,3 @@
{
"appId": "4ad379bb-0a97-45da-af44-f090aee3b40d"
}

9
config.json Normal file
View File

@ -0,0 +1,9 @@
{
"topic": "performance",
"id": "sdt",
"password": "11223344",
"host": {
"address": "192.168.100.200",
"hostname": "sdt"
}
}

View File

@ -2,8 +2,9 @@
set -e
sudo sed -i "s/appName/$1/g" /usr/local/sdt/app/$1/example-app.service
sudo cp /usr/local/sdt/app/$1/example-app.service /etc/systemd/system/$1.service
sudo pip install paho-mqtt
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
sudo systemctl start $1
sudo systemctl enable $1