mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-07-13 01:22:12 +02:00
43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2021-2026 community-scripts ORG
|
|
# Author: MickLesk (CanbiZ)
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://github.com/navidrome/navidrome
|
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
color
|
|
verb_ip6
|
|
catch_errors
|
|
setting_up_container
|
|
network_check
|
|
update_os
|
|
|
|
msg_info "Installing Dependencies (Patience)"
|
|
$STD apt install -y ffmpeg
|
|
msg_ok "Installed Dependencies"
|
|
|
|
fetch_and_deploy_gh_release "navidrome" "navidrome/navidrome" "binary"
|
|
|
|
msg_info "Starting Navidrome"
|
|
systemctl enable -q --now navidrome
|
|
msg_ok "Started Navidrome"
|
|
|
|
read -p "${TAB3}Do you want to install filebrowser addon? (y/n) " -n 1 -r
|
|
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
|
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/filebrowser.sh)"
|
|
chown -R navidrome:navidrome /usr/local/community-scripts
|
|
mkdir -p /etc/systemd/system/filebrowser.service.d
|
|
cat <<EOF >/etc/systemd/system/filebrowser.service.d/navidrome.conf
|
|
[Service]
|
|
User=navidrome
|
|
Group=navidrome
|
|
EOF
|
|
systemctl daemon-reload
|
|
systemctl restart filebrowser 2>/dev/null || true
|
|
fi
|
|
|
|
motd_ssh
|
|
customize
|
|
cleanup_lxc
|