setup-ttrss.sh: Fixed cloning TT-RSS repo, renaming TTRSS_REPO to TTRSS_REPO_URL.

This commit is contained in:
x86dev 2017-07-28 23:07:23 +02:00
parent 8c2fe770bd
commit ab7dc0eeae

View File

@ -43,8 +43,8 @@ setup_nginx()
setup_ttrss()
{
if [ -z "$TTRSS_REPO" ]; then
TTRSS_HOST=https://git.tt-rss.org/git/tt-rss.git
if [ -z "$TTRSS_REPO_URL" ]; then
TTRSS_REPO_URL=https://git.tt-rss.org/git/tt-rss.git
fi
if [ -z "$TTRSS_PATH" ]; then
@ -57,11 +57,11 @@ setup_ttrss()
echo "Setup: Setting up Tiny Tiny RSS '$TTRSS_GIT_TAG' ..."
cd ${TTRSS_PATH}
git init .
git fetch --depth=1 $TTRSS_REPO refs/tags/${TTRSS_GIT_TAG}:refs/tags/${TTRSS_GIT_TAG}
git fetch --depth=1 ${TTRSS_REPO_URL} refs/tags/${TTRSS_GIT_TAG}:refs/tags/${TTRSS_GIT_TAG}
git checkout tags/${TTRSS_GIT_TAG}
else
echo "Setup: Setting up Tiny Tiny RSS (latest revision) ..."
git clone --depth=1 $TTRSS_REPO ${TTRSS_PATH}
git clone --depth=1 ${TTRSS_REPO_URL} ${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