bwc-installer/device-health/install.sh

10 lines
316 B
Bash
Raw Permalink Normal View History

2023-09-11 01:56:25 +00:00
#!/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