m1s_ups_control_mirror_test/install_service.sh

14 lines
252 B
Bash
Raw Normal View History

2024-04-29 07:04:45 +00:00
#!/bin/bash
2024-06-14 13:39:01 +00:00
python3 -m pip install -r requirements.txt
2024-04-29 07:04:45 +00:00
mkdir -p /etc/m1s_ups/
cp kill.sh /etc/m1s_ups/
cp service.py /etc/m1s_ups/
cp m1s_ups.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable --now m1s_ups
2024-06-14 13:39:01 +00:00
echo 'install sucess'