Add passing TTRSS_GITURL as env variable

This commit is contained in:
David Young 2017-07-19 18:52:19 +12:00
parent 314161df6c
commit 2e3669cc18

View File

@ -43,8 +43,14 @@ setup_nginx()
setup_ttrss() setup_ttrss()
{ {
TTRSS_PATH=/var/www/ttrss if [ -z "$TTRSS_REPO" ]; then
TTRSS_REPO=https://git.tt-rss.org/git/tt-rss.git TTRSS_HOST=https://git.tt-rss.org/git/tt-rss.git
fi
if [ -z "$TTRSS_PATH" ]; then
TTRSS_PATH=/var/www/ttrss
fi
if [ ! -d ${TTRSS_PATH} ]; then if [ ! -d ${TTRSS_PATH} ]; then
mkdir -p ${TTRSS_PATH} mkdir -p ${TTRSS_PATH}
if [ -n "$TTRSS_GIT_TAG" ]; then if [ -n "$TTRSS_GIT_TAG" ]; then