mirror of https://github.com/tteck/Proxmox.git
Update navidrome-install.sh
fixes https://github.com/tteck/Proxmox/issues/2065
This commit is contained in:
parent
03ea3fb8dd
commit
b3784e4df4
|
@ -20,14 +20,12 @@ $STD apt-get install -y mc
|
||||||
$STD apt-get install -y ffmpeg
|
$STD apt-get install -y ffmpeg
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/navidrome/navidrome/releases/latest |
|
RELEASE=$(curl -s https://api.github.com/repos/navidrome/navidrome/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
grep "tag_name" |
|
|
||||||
awk '{print substr($2, 3, length($2)-4) }')
|
|
||||||
|
|
||||||
msg_info "Installing Navidrome"
|
msg_info "Installing Navidrome"
|
||||||
install -d -o root -g root /opt/navidrome
|
install -d -o root -g root /opt/navidrome
|
||||||
install -d -o root -g root /var/lib/navidrome
|
install -d -o root -g root /var/lib/navidrome
|
||||||
$STD wget https://github.com/navidrome/navidrome/releases/download/v${RELEASE}/navidrome_${RELEASE}_Linux_x86_64.tar.gz -O Navidrome.tar.gz
|
wget -q https://github.com/navidrome/navidrome/releases/download/v${RELEASE}/navidrome_${RELEASE}_linux_amd64.tar.gz -O Navidrome.tar.gz
|
||||||
$STD tar -xvzf Navidrome.tar.gz -C /opt/navidrome/
|
$STD tar -xvzf Navidrome.tar.gz -C /opt/navidrome/
|
||||||
chown -R root:root /opt/navidrome
|
chown -R root:root /opt/navidrome
|
||||||
mkdir -p /music
|
mkdir -p /music
|
||||||
|
|
Loading…
Reference in New Issue