1
0
mirror of https://github.com/x86dev/docker-ttrss synced 2025-12-30 02:01:33 +00:00

Added environment variable TTRSS_GIT_TAG to specify a TT-RSS release tag to use specifically instead of using the rolling release model.

This commit is contained in:
x86dev
2017-07-13 17:57:15 +02:00
parent 3390c14b05
commit 3cbb67e680
2 changed files with 13 additions and 1 deletions

View File

@@ -49,7 +49,14 @@ setup_ttrss()
if [ ! -d ${TTRSS_PATH} ]; then
mkdir -p ${TTRSS_PATH}
git clone --depth=1 https://tt-rss.org/gitlab/fox/tt-rss.git ${TTRSS_PATH}
if [ -n "$TTRSS_GIT_TAG" ]; then
cd ${TTRSS_PATH}
git init .
git fetch --depth 1 https://tt-rss.org/gitlab/fox/tt-rss.git refs/tags/${TTRSS_GIT_TAG}:refs/tags/${TTRSS_GIT_TAG}
git checkout tags/${TTRSS_GIT_TAG}
else
git clone --depth=1 https://tt-rss.org/gitlab/fox/tt-rss.git ${TTRSS_PATH}
fi
git clone --depth=1 https://github.com/sepich/tt-rss-mobilize.git ${TTRSS_PATH}/plugins/mobilize
git clone --depth=1 https://github.com/hrk/tt-rss-newsplus-plugin.git ${TTRSS_PATH}/plugins/api_newsplus
git clone --depth=1 https://github.com/m42e/ttrss_plugin-feediron.git ${TTRSS_PATH}/plugins/feediron