mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
Update ersatztv-install.sh
Finalize
This commit is contained in:
parent
da8942aaa3
commit
38be75aa53
1 changed files with 5 additions and 8 deletions
|
@ -29,13 +29,10 @@ $STD apt-get install -y --no-install-recommends \
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
|
||||||
msg_info "Installing ErsatzTV (Patience)"
|
msg_info "Installing ErsatzTV "
|
||||||
cd /opt
|
RELEASE=$(curl -s https://api.github.com/repos/ErsatzTV/ErsatzTV/releases | grep -oP '"tag_name": "\K[^"]+' | head -n 1)
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/ErsatzTV/ErsatzTV/releases | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }' | head -n 1)
|
wget -qO- "https://github.com/ErsatzTV/ErsatzTV/releases/download/${RELEASE}/ErsatzTV-${RELEASE}-linux-x64.tar.gz" | tar -xz -C /opt
|
||||||
wget -q https://github.com/ErsatzTV/ErsatzTV/releases/download/${RELEASE}/ErsatzTV-${RELEASE}-linux-x64.tar.gz
|
mv "/opt/ErsatzTV-${RELEASE}-linux-x64" /opt/ErsatzTV
|
||||||
tar -xf ErsatzTV-${RELEASE}-linux-x64.tar.gz
|
|
||||||
mv ErsatzTV-${RELEASE}-linux-x64 ErsatzTV
|
|
||||||
rm -R ErsatzTV-${RELEASE}-linux-x64.tar.gz
|
|
||||||
msg_ok "Installed ErsatzTV"
|
msg_ok "Installed ErsatzTV"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
@ -45,6 +42,7 @@ Description=ErsatzTV Service
|
||||||
After=multi-user.target
|
After=multi-user.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/ErsatzTV
|
WorkingDirectory=/opt/ErsatzTV
|
||||||
ExecStart=/opt/ErsatzTV/ErsatzTV
|
ExecStart=/opt/ErsatzTV/ErsatzTV
|
||||||
|
@ -54,7 +52,6 @@ RestartSec=30
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
sudo systemctl daemon-reload
|
|
||||||
systemctl -q --now enable ersatzTV.service
|
systemctl -q --now enable ersatzTV.service
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue