gseps-edge-app/install.sh

11 lines
325 B
Bash
Raw Normal View History

2024-05-29 09:58:46 +00:00
#!/bin/bash
set -e
sudo sed -i "s/appName/$1_$2/g" /usr/local/sdt/app/$1_$2/gseps-image-acquisition.service
sudo sed -i "s/appIDvalue/$2/g" /usr/local/sdt/app/$1_$2/config.json
sudo cp /usr/local/sdt/app/$1_$2/gseps-image-acquisition.service /etc/systemd/system/$1.service
sudo systemctl start $1
sudo systemctl enable $1