mirror of
https://github.com/YunoHost-Apps/ttrss_ynh.git
synced 2024-10-01 13:34:46 +02:00
Hello, the folder within the zip does not match the pattern anymore. As a result, the app won't install anymore... Here is the fix. Hello, I have a strange error: ``` rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1] rsync: change_dir "/tmp/tmp.n4cxYSWbPh/tt-rss.git" failed: No such file or directory (2) + sudo rsync -a '/tmp/tmp.n4cxYSWbPh/tt-rss.git/*' /var/www/ttrss + unzip -q /tmp/ttrss.zip -d /tmp/tmp.n4cxYSWbPh + wget -q -O /tmp/ttrss.zip 'https://tt-rss.org/gitlab/fox/tt-rss/repository/archive.zip?ref=17.1' ```
32 lines
758 B
Bash
32 lines
758 B
Bash
#
|
|
# Common variables
|
|
#
|
|
|
|
APPNAME="ttrss"
|
|
|
|
# ttrss version
|
|
VERSION="17.1"
|
|
|
|
# Remote URL to fetch ttrss tarball
|
|
TTRSS_BINARY_URL="https://tt-rss.org/gitlab/fox/tt-rss/repository/archive.zip?ref=${VERSION}"
|
|
|
|
#
|
|
# Common helpers
|
|
#
|
|
|
|
# Download and extract ttrss binary to the given directory
|
|
# usage: extract_ttrss DESTDIR
|
|
extract_ttrss() {
|
|
local DESTDIR=$1
|
|
local TMPDIR=$(mktemp -d)
|
|
|
|
# retrieve and extract ttrss tarball
|
|
ttrss_tarball="/tmp/ttrss.zip"
|
|
rm -f "$ttrss_tarball"
|
|
wget -q -O "$ttrss_tarball" "$TTRSS_BINARY_URL" \
|
|
|| ynh_die "Unable to download ttrss tarball"
|
|
unzip -q "$ttrss_tarball" -d "$TMPDIR" \
|
|
|| ynh_die "Unable to extract ttrss tarball"
|
|
sudo rsync -a "$TMPDIR"/tt-rss*/* "$DESTDIR"
|
|
rm -rf "$ttrss_tarball" "$TMPDIR"
|
|
}
|