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

@ -166,6 +166,11 @@ minimum:
``` ```
## Useful stuff to know ## Useful stuff to know
### Single User mode
In case you are running behind a proxy that has basic auth and you do not wish to use
ttrss auth, you can set the enviroment variable TTRSS_SINGLEUSER to true and it
will change the setup to single user mode
### Backing up / moving to another server ### Backing up / moving to another server
Decided to back up your data container and/or move to another server? Here's how Decided to back up your data container and/or move to another server? Here's how

View File

@ -103,6 +103,12 @@ setup_ttrss()
# Patch URL path. # Patch URL path.
sed -i -e 's@htt.*/@'"${TTRSS_SELF_URL}"'@g' ${TTRSS_PATH}/config.php 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. # Enable additional system plugins.
if [ -z ${TTRSS_PLUGINS} ]; then if [ -z ${TTRSS_PLUGINS} ]; then