2025-06-05 22:15:11 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2026-01-06 13:28:12 +01:00
|
|
|
# Copyright (c) 2021-2026 community-scripts ORG
|
2025-06-05 22:15:11 +02:00
|
|
|
# Author: Omar Minaya
|
|
|
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
|
|
|
# Source: https://lyrion.org/getting-started/
|
|
|
|
|
|
|
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
|
|
|
color
|
|
|
|
|
verb_ip6
|
|
|
|
|
catch_errors
|
|
|
|
|
setting_up_container
|
|
|
|
|
network_check
|
|
|
|
|
update_os
|
|
|
|
|
|
|
|
|
|
msg_info "Setup Lyrion Music Server"
|
2026-06-21 08:21:58 +10:00
|
|
|
DEB_ARCH=$(arch_resolve "amd64" "arm")
|
|
|
|
|
DEB_URL=$(curl_with_retry 'https://lyrion.org/getting-started/' | grep -oP "<a\s[^>]*href=\"\K[^\"]*${DEB_ARCH}\.deb(?=\"[^>]*>)" | head -n 1)
|
|
|
|
|
RELEASE=$(echo "$DEB_URL" | grep -oP "lyrionmusicserver_\K[0-9.]+(?=_${DEB_ARCH}\.deb)")
|
|
|
|
|
DEB_FILE="/tmp/lyrionmusicserver_${RELEASE}_${DEB_ARCH}.deb"
|
2026-04-14 21:22:32 +02:00
|
|
|
curl_with_retry "$DEB_URL" "$DEB_FILE"
|
2025-06-05 22:15:11 +02:00
|
|
|
$STD apt install "$DEB_FILE" -y
|
2025-11-22 17:27:13 +01:00
|
|
|
rm -f "$DEB_FILE"
|
2025-06-05 22:15:11 +02:00
|
|
|
echo "${RELEASE}" >"/opt/lyrion_version.txt"
|
|
|
|
|
msg_ok "Setup Lyrion Music Server v${RELEASE}"
|
|
|
|
|
|
|
|
|
|
motd_ssh
|
|
|
|
|
customize
|
2025-11-22 17:27:13 +01:00
|
|
|
cleanup_lxc
|