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

Add single user mode as enviroment variable

variable to enable single user mode
This commit is contained in:
Schemen
2017-11-19 15:54:19 +01:00
parent 182e85bf1d
commit 99bcf1752e
2 changed files with 16 additions and 5 deletions

View File

@@ -103,6 +103,12 @@ setup_ttrss()
# Patch URL path.
sed -i -e 's@htt.*/@'"${TTRSS_SELF_URL}"'@g' ${TTRSS_PATH}/config.php
# Check if single user mode is selected
if [ "$TTRSS_SINGLEUSER" = true ]; then
echo "Single User mode Selected"
sed -i -e "s/.*define('SINGLE_USER_MODE'.*/define('SINGLE_USER_MODE', 'true');/g" ${TTRSS_PATH}/config.php
fi
# Enable additional system plugins.
if [ -z ${TTRSS_PLUGINS} ]; then