m1s_ups_control_mirror_test/install_service.sh

16 lines
290 B
Bash
Raw Normal View History

2024-04-29 07:04:45 +00:00
#!/bin/bash
2024-07-13 06:21:07 +00:00
apt update
apt install python3-pip
2024-06-14 13:39:01 +00:00
python3 -m pip install -r requirements.txt
2024-07-13 16:29:30 +00:00
mkdir -p /etc/m1s_ups/log
2024-04-29 07:04:45 +00:00
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'