mirror of
https://github.com/gunu3371/m1s_ups_control.git
synced 2024-09-25 05:35:40 +00:00
16 lines
287 B
Bash
Executable File
16 lines
287 B
Bash
Executable File
#!/bin/bash
|
|
apt update
|
|
apt install python3-pip
|
|
python3 -m pip install -r requirements.txt
|
|
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
|
|
|
|
echo 'install sucess'
|