test3/device-health/install.sh

10 lines
316 B
Bash
Executable File

#!/bin/bash
sudo mkdir -p /etc/sdt/device-health
sudo cp config.yaml /etc/sdt/device-health/
sudo sed -i "s/acode/$1/g" /etc/sdt/device-health/config.yaml
sudo cp device-health /usr/local/bin/
sudo cp device-health.service /etc/systemd/system/
sudo systemctl start device-health
sudo systemctl enable device-health