mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-21 15:01:18 +02:00
18b9cd2e64
* [arm64] Port scripts between komga-mediamanager to support arm64 adds override to make debian cts on arm64 use ubuntu mongodb binaries * bump limesurvey
61 lines
1.9 KiB
Bash
61 lines
1.9 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
|
# Copyright (c) 2021-2026 community-scripts ORG
|
|
# Author: Omar Minaya
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://lyrion.org/getting-started/
|
|
|
|
APP="Lyrion Music Server"
|
|
var_tags="${var_tags:-media}"
|
|
var_cpu="${var_cpu:-1}"
|
|
var_ram="${var_ram:-1024}"
|
|
var_disk="${var_disk:-3}"
|
|
var_os="${var_os:-debian}"
|
|
var_version="${var_version:-13}"
|
|
var_arm64="${var_arm64:-yes}"
|
|
var_unprivileged="${var_unprivileged:-1}"
|
|
|
|
header_info "$APP"
|
|
variables
|
|
color
|
|
catch_errors
|
|
|
|
function update_script() {
|
|
header_info
|
|
check_container_storage
|
|
check_container_resources
|
|
|
|
if [[ ! -f /lib/systemd/system/lyrionmusicserver.service ]]; then
|
|
msg_error "No ${APP} Installation Found!"
|
|
exit
|
|
fi
|
|
|
|
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"
|
|
if [[ ! -f /opt/lyrion_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/lyrion_version.txt)" ]]; then
|
|
msg_info "Updating $APP to ${RELEASE}"
|
|
curl_with_retry "$DEB_URL" "$DEB_FILE"
|
|
$STD apt install "$DEB_FILE" -y
|
|
systemctl restart lyrionmusicserver
|
|
rm -f "$DEB_FILE"
|
|
echo "${RELEASE}" >/opt/lyrion_version.txt
|
|
msg_ok "Updated $APP to ${RELEASE}"
|
|
msg_ok "Updated successfully!"
|
|
else
|
|
msg_ok "$APP is already up to date (${RELEASE})"
|
|
fi
|
|
exit
|
|
}
|
|
|
|
start
|
|
build_container
|
|
description
|
|
|
|
msg_ok "Completed successfully!\n"
|
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
|
echo -e "${INFO}${YW} Access the web interface at:${CL}"
|
|
echo -e "${GATEWAY}${BGN}http://${IP}:9000${CL}"
|