1
0
mirror of https://github.com/x86dev/docker-ttrss synced 2025-12-13 09:56:02 +00:00

Made resetting the theme optional via TTRSS_THEME_RESET env var. Default is resetting the theme to the default one though. Untested.

This commit is contained in:
x86dev
2019-07-25 23:25:45 +02:00
parent 472b083f7d
commit 8565deba18
2 changed files with 16 additions and 4 deletions

View File

@@ -108,6 +108,11 @@ setup_ttrss()
echo "Setup: URL is: $TTRSS_SELF_URL"
# By default we want to reset the theme to the default one.
if [ -z ${TTRSS_THEME_RESET} ]; then
TTRSS_THEME_RESET=1
fi
# Patch URL path.
sed -i -e 's@htt.*/@'"${TTRSS_SELF_URL}"'@g' ${TTRSS_PATH}/config.php
@@ -131,6 +136,11 @@ setup_ttrss()
echo "Setup: Additional plugins: $TTRSS_PLUGINS"
sed -i -e "s/.*define('PLUGINS'.*/define('PLUGINS', '$TTRSS_PLUGINS, auth_internal, note, updater');/g" ${TTRSS_PATH}/config.php
# Export variables for sub shells.
export TTRSS_PATH
export TTRSS_PATH_PLUGINS
export TTRSS_THEME_RESET
}
setup_db()