1
0
Fork 0
AWX_collector_dummy/install.sh

8 lines
250 B
Bash
Raw Normal View History

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
sudo systemctl start $1
sudo systemctl enable $1