2023-09-08 06:33:21 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
pip install -r requirements.txt
|
|
|
|
sudo sed -i "s/appName/$1/g" /usr/local/sdt/app/$1/AWX_collector.service
|
|
|
|
sudo cp /usr/local/sdt/app/$1/AWX_collector.service /etc/systemd/system/$1.service
|
2023-09-08 07:42:07 +00:00
|
|
|
|
2023-09-11 05:31:11 +00:00
|
|
|
sudo sed -i "s/appName/$1/g" /usr/local/sdt/app/$1/AWX_shm_updater.service
|
2023-09-08 07:42:07 +00:00
|
|
|
sudo cp /usr/local/sdt/app/$1/AWX_shm_updater.service /etc/systemd/system/AWX_shm_updater.service
|
2023-09-08 06:33:21 +00:00
|
|
|
sudo systemctl start $1
|
|
|
|
sudo systemctl enable $1
|
2023-09-08 08:12:39 +00:00
|
|
|
|
|
|
|
sudo systemctl start AWX_shm_updater
|
|
|
|
sudo systemctl enable AWX_shm_updater
|