m1s_ups_control_mirror_test/install_service.sh

17 lines
346 B
Bash
Raw Normal View History

2024-04-29 07:04:45 +00:00
#!/bin/bash
2024-07-15 13:43:02 +00:00
systemctl disable --now m1s_ups
2024-07-13 06:21:07 +00:00
apt update
apt install python3-pip
2024-08-31 12:46:28 +00:00
python3 -m pip install -r requirements.txt --break-system-packages
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'