Merge pull request #24 from schemen/master
Add single user mode as enviroment variable
This commit is contained in:
commit
d3ff6b028c
@ -166,6 +166,11 @@ minimum:
|
||||
```
|
||||
## 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
|
||||
|
||||
Decided to back up your data container and/or move to another server? Here's how
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user