mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
enhance
This commit is contained in:
parent
ed77255127
commit
549d6f533f
1 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,8 @@ msg_info "Installing Mylar3"
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/mylar3/mylar3/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
RELEASE=$(curl -s https://api.github.com/repos/mylar3/mylar3/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
msg_info "Installing Mylar3 ${RELEASE} (Patience)"
|
msg_info "Installing Mylar3 ${RELEASE} (Patience)"
|
||||||
mkdir -p /opt/mylar3
|
mkdir -p /opt/mylar3
|
||||||
|
mkdir -p /var/lib/mylar3/
|
||||||
|
chmod 775 /var/lib/mylar3/
|
||||||
tar zxvf <(curl -fsSL https://github.com/mylar3/mylar3/archive/refs/tags/${RELEASE}.tar.gz) -C /opt/mylar3 --strip-components=1 &>/dev/null
|
tar zxvf <(curl -fsSL https://github.com/mylar3/mylar3/archive/refs/tags/${RELEASE}.tar.gz) -C /opt/mylar3 --strip-components=1 &>/dev/null
|
||||||
cd /opt/mylar3
|
cd /opt/mylar3
|
||||||
$STD python3 -m pip install -r requirements.txt
|
$STD python3 -m pip install -r requirements.txt
|
||||||
|
@ -45,7 +47,7 @@ Description=mylar3
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/opt/mylar3
|
WorkingDirectory=/opt/mylar3
|
||||||
ExecStart=python3 Mylar.py -p 8585
|
ExecStart=python3 Mylar.py -p 8585 --datadir /var/lib/mylar3/
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue