diff --git a/ct/komga.sh b/ct/komga.sh index 2f9f5f0d..2f2691c1 100644 --- a/ct/komga.sh +++ b/ct/komga.sh @@ -28,7 +28,7 @@ function update_script() { header_info check_container_storage check_container_resources - if [[ ! -f /opt/komga/komga*.jar ]]; then + if [[ ! -f /opt/komga/komga.jar ]]; then msg_error "No ${APP} Installation Found!" exit fi @@ -40,8 +40,8 @@ function update_script() { msg_ok "Stopped ${APP}" msg_info "Updating ${APP} to ${RELEASE}" - rm -rf /opt/komga/komga*.jar - wget -q "https://github.com/gotson/komga/releases/download/v${RELEASE}/komga-${RELEASE}.jar" + wget -q "https://github.com/gotson/komga/releases/download/${RELEASE}/komga-${RELEASE}.jar" + rm -rf /opt/komga/komga.jar mv -f komga-${RELEASE}.jar /opt/komga/komga.jar echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP} to ${RELEASE}" @@ -63,4 +63,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:25600${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:25600${CL}"