11 lines
325 B
Bash
11 lines
325 B
Bash
|
#!/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
|
||
|
|