m1s_ups_control_mirror_test/install_service.sh
2024-08-31 21:46:28 +09:00

17 lines
346 B
Bash
Executable File

#!/bin/bash
systemctl disable --now m1s_ups
apt update
apt install python3-pip
python3 -m pip install -r requirements.txt --break-system-packages
mkdir -p /etc/m1s_ups/log
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
echo 'install sucess'