diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f39f106f..856fed844 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,13 @@ - All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment. - 🚨 **The scripts in the repository will no longer provide support for Proxmox VE 7 starting from July 2024 (scripts will not execute on PVE7). Subsequent Proxmox VE - Support Lifecycle** +## 2024-04-09 + +### Changed + +- **PairDrop LXC** + - Add back to website + ## 2024-04-05 ### Changed diff --git a/ct/ombi.sh b/ct/ombi.sh index 658182dcf..4e53aa6b5 100644 --- a/ct/ombi.sh +++ b/ct/ombi.sh @@ -55,7 +55,26 @@ function default_settings() { function update_script() { header_info if [[ ! -d /opt/ombi ]]; then msg_error "No ${APP} Installation Found!"; exit; fi -msg_error "There is currently no update path available." +RELEASE=$(curl -sL https://api.github.com/repos/Ombi-app/Ombi/releases/latest | grep '"tag_name":' | cut -d'"' -f4) +if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then + msg_info "Stopping ${APP}" + systemctl stop ombi + msg_ok "Stopped ${APP}" + + msg_info "Updating ${APP} to ${RELEASE}" + wget -q https://github.com/Ombi-app/Ombi/releases/download/${RELEASE}/linux-x64.tar.gz + tar -xzf linux-x64.tar.gz -C /opt/ombi + rm -rf linux-x64.tar.gz + echo "${RELEASE}" >/opt/${APP}_version.txt + msg_ok "Updated ${APP} to ${RELEASE}" + + msg_info "Starting ${APP}" + systemctl start ombi + msg_ok "Started ${APP}" + msg_ok "Updated Successfully" +else + msg_ok "No update required. ${APP} ia already at ${RELEASE}." +fi exit } diff --git a/install/linkwarden-install.sh b/install/linkwarden-install.sh index acf60ea1b..360e693f5 100644 --- a/install/linkwarden-install.sh +++ b/install/linkwarden-install.sh @@ -71,6 +71,8 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then fi msg_info "Installing Linkwarden (Patience)" +RELEASE=$(curl -s https://api.github.com/repos/linkwarden/linkwarden/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') +echo "${RELEASE}" >/opt/${APPLICATION}_version.txt $STD yarn $STD npx playwright install-deps IP=$(hostname -I | awk '{print $1}') diff --git a/install/ombi-install.sh b/install/ombi-install.sh index c5e631e79..ff3135048 100644 --- a/install/ombi-install.sh +++ b/install/ombi-install.sh @@ -20,11 +20,12 @@ $STD apt-get install -y mc msg_ok "Installed Dependencies" msg_info "Installing Ombi" -LATEST=$(curl -sL https://api.github.com/repos/Ombi-app/Ombi/releases/latest | grep '"tag_name":' | cut -d'"' -f4) -# wget -q https://github.com/Ombi-app/Ombi/releases/download/${LATEST}/linux-x64.tar.gz -wget -q https://github.com/Ombi-app/Ombi/releases/download/v4.43.2/linux-x64.tar.gz +RELEASE=$(curl -sL https://api.github.com/repos/Ombi-app/Ombi/releases/latest | grep '"tag_name":' | cut -d'"' -f4) +wget -q https://github.com/Ombi-app/Ombi/releases/download/${RELEASE}/linux-x64.tar.gz +echo "${RELEASE}" >/opt/${APPLICATION}_version.txt mkdir -p /opt/ombi tar -xzf linux-x64.tar.gz -C /opt/ombi +rm -rf linux-x64.tar.gz msg_ok "Installed Ombi" msg_info "Creating Service"