Merge pull request #24 from schemen/master

Add single user mode as enviroment variable
This commit is contained in:
x86dev 2017-11-27 22:53:35 +01:00 committed by GitHub
commit d3ff6b028c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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