Skip to content

Commit 129698d

Browse files
authored
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
1 parent 77997d5 commit 129698d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ct/commafeed.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ function update_script() {
3333
systemctl stop commafeed
3434
msg_ok "Stopped ${APP}"
3535

36+
if ! [[ $(dpkg -s rsync 2>/dev/null) ]]; then
37+
msg_info "Installing Dependencies"
38+
$STD apt-get update
39+
$STD apt-get install -y rsync
40+
msg_ok "Installed Dependencies"
41+
fi
42+
3643
msg_info "Updating ${APP} to ${RELEASE}"
3744
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")
3845
unzip -q commafeed-"${RELEASE}"-h2-jvm.zip

0 commit comments

Comments
 (0)