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