Merge pull request #5 from rsilva4/patch-1

Fixed for previously unset SELF_URL_PATH
This commit is contained in:
x86dev 2017-01-19 10:53:07 +01:00 committed by GitHub
commit 16230d1e5f

View File

@ -43,7 +43,7 @@ setup_ttrss()
cp ${TTRSS_PATH}/config.php-dist ${TTRSS_PATH}/config.php cp ${TTRSS_PATH}/config.php-dist ${TTRSS_PATH}/config.php
# Patch URL path. # Patch URL path.
sed -i -e 's@http://localhost/@'"$SELF_URL_PATH"'@g' ${TTRSS_PATH}/config.php sed -i -e 's@htt.*/@'"${SELF_URL_PATH-http://localhost/}"'@g' ${TTRSS_PATH}/config.php
# Enable additional system plugins: api_newsplus. # Enable additional system plugins: api_newsplus.
sed -i -e "s/.*define('PLUGINS'.*/define('PLUGINS', 'api_newsplus, auth_internal, note, updater');/g" ${TTRSS_PATH}/config.php sed -i -e "s/.*define('PLUGINS'.*/define('PLUGINS', 'api_newsplus, auth_internal, note, updater');/g" ${TTRSS_PATH}/config.php