Fixed for previously unset SELF_URL_PATH

This commit is contained in:
Ruben Silva 2017-01-17 10:13:42 +00:00
parent 3a6e7ea52e
commit 1ad7d269af

View File

@ -43,7 +43,7 @@ setup_ttrss()
cp ${TTRSS_PATH}/config.php-dist ${TTRSS_PATH}/config.php
# 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.
sed -i -e "s/.*define('PLUGINS'.*/define('PLUGINS', 'api_newsplus, auth_internal, note, updater');/g" ${TTRSS_PATH}/config.php