From d744460d4a6ca106fd0802ed2f2f12734aaf964b Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 3 Jun 2025 11:52:27 +0200 Subject: [PATCH] little improvments --- ct/lyrionmusicserver.sh | 3 +-- install/lyrionmusicserver-install.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ct/lyrionmusicserver.sh b/ct/lyrionmusicserver.sh index 1328a6a9..392a87c6 100644 --- a/ct/lyrionmusicserver.sh +++ b/ct/lyrionmusicserver.sh @@ -32,7 +32,7 @@ function update_script() { DEB_URL=$(curl -s 'https://lyrion.org/getting-started/' | grep -oP ']*href="\K[^"]*amd64\.deb(?="[^>]*>)' | head -n 1) RELEASE=$(echo "$DEB_URL" | grep -oP 'lyrionmusicserver_\K[0-9.]+(?=_amd64\.deb)') DEB_FILE="/tmp/lyrionmusicserver_${RELEASE}_amd64.deb" - if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then + if [[ ! -f /opt/lyrion_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/lyrion_version.txt)" ]]; then msg_info "Updating $APP to ${RELEASE}" curl -fsSL -o "$DEB_FILE" "$DEB_URL" $STD apt install "$DEB_FILE" -y @@ -58,4 +58,3 @@ 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 "${TAB}${GATEWAY}${BGN}http://${IP}:9000${CL}" -echo -e "${INFO}${YW} Check logs for setup details: ~/lyrion-install.log${CL}" diff --git a/install/lyrionmusicserver-install.sh b/install/lyrionmusicserver-install.sh index 3c02b037..9061c4dd 100644 --- a/install/lyrionmusicserver-install.sh +++ b/install/lyrionmusicserver-install.sh @@ -19,7 +19,7 @@ RELEASE=$(echo "$DEB_URL" | grep -oP 'lyrionmusicserver_\K[0-9.]+(?=_amd64\.deb) DEB_FILE="/tmp/lyrionmusicserver_${RELEASE}_amd64.deb" curl -fsSL -o "$DEB_FILE" "$DEB_URL" $STD apt install "$DEB_FILE" -y -echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" +echo "${RELEASE}" >"/opt/lyrion_version.txt" msg_ok "Setup Lyrion Music Server v${RELEASE}" motd_ssh