Set SELF_URL_PATH properly in config.php

This commit is contained in:
Ruben Silva 2016-12-07 12:23:59 +00:00 committed by GitHub
parent 49726dd47d
commit a6c5d7c3db

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 "/'SELF_URL_PATH'/s/ '.*'/ 'http:\/\/localhost\/'/" ${TTRSS_PATH}/config.php sed -i -e 's@http://localhost/@'"$SELF_URL_PATH"'/@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