Files
ProxmoxVE/install/navidrome-install.sh
T

43 lines
1.3 KiB
Bash
Raw Normal View History

2023-03-22 20:48:20 -04:00
#!/usr/bin/env bash
2025-04-29 11:56:49 +02:00
# Copyright (c) 2021-2025 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
2025-04-29 11:56:49 +02:00
# Source: https://github.com/navidrome/navidrome
2023-03-22 20:48:20 -04:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
2023-03-22 20:48:20 -04:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
2025-04-29 11:56:49 +02:00
msg_info "Installing Dependencies (Patience)"
$STD apt-get install -y \
2025-05-15 11:13:57 +02:00
ffmpeg
2023-03-22 20:48:20 -04:00
msg_ok "Installed Dependencies"
msg_info "Installing Navidrome"
2025-04-29 11:56:49 +02:00
RELEASE=$(curl -fsSL https://api.github.com/repos/navidrome/navidrome/releases/latest | grep "tag_name" | awk -F '"' '{print $4}')
TMP_DEB=$(mktemp --suffix=.deb)
curl -fsSL -o "${TMP_DEB}" "https://github.com/navidrome/navidrome/releases/download/${RELEASE}/navidrome_${RELEASE#v}_linux_amd64.deb"
$STD apt-get install -y "${TMP_DEB}"
2025-04-01 20:22:40 +02:00
systemctl enable -q --now navidrome
2025-04-29 11:56:49 +02:00
echo "${RELEASE}" >/opt/Navidrome_version.txt
msg_ok "Installed Navidrome"
2023-03-22 20:48:20 -04:00
2025-05-15 11:13:57 +02:00
read -p "${TAB3}Do you want to install filebrowser addon? (y/n) " -n 1 -r
2025-04-29 11:56:49 +02:00
if [[ $REPLY =~ ^[Yy]$ ]]; then
2025-05-15 11:13:57 +02:00
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/filebrowser.sh)"
2025-04-29 11:56:49 +02:00
fi
2023-03-22 20:48:20 -04:00
motd_ssh
2023-05-15 07:39:30 -04:00
customize
2023-03-22 20:48:20 -04:00
msg_info "Cleaning up"
2025-04-29 11:56:49 +02:00
rm -f "${TMP_DEB}"
2024-06-02 08:00:22 -04:00
$STD apt-get -y autoremove
$STD apt-get -y autoclean
2023-03-22 20:48:20 -04:00
msg_ok "Cleaned"