From 129698dd3ddb89563efdc23bb7ffce82a1711ee6 Mon Sep 17 00:00:00 2001 From: Maxwell Zhao Date: Mon, 28 Apr 2025 18:46:18 -0400 Subject: [PATCH] Install rsync in ct/commafeed.sh (#4086) * Install rsync in ct/commafeed.sh This commit installs rsync in the update script of commafeed for users who used the install script before rsync was added. * Update commafeed.sh --- ct/commafeed.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ct/commafeed.sh b/ct/commafeed.sh index cd05ca7b1..07eb05a8e 100644 --- a/ct/commafeed.sh +++ b/ct/commafeed.sh @@ -33,6 +33,13 @@ function update_script() { systemctl stop commafeed msg_ok "Stopped ${APP}" + if ! [[ $(dpkg -s rsync 2>/dev/null) ]]; then + msg_info "Installing Dependencies" + $STD apt-get update + $STD apt-get install -y rsync + msg_ok "Installed Dependencies" + fi + msg_info "Updating ${APP} to ${RELEASE}" curl -fsSL "https://github.com/Athou/commafeed/releases/download/${RELEASE}/commafeed-${RELEASE}-h2-jvm.zip" -o $(basename "https://github.com/Athou/commafeed/releases/download/${RELEASE}/commafeed-${RELEASE}-h2-jvm.zip") unzip -q commafeed-"${RELEASE}"-h2-jvm.zip