Update setup-ttrss.sh

This commit is contained in:
Gilles FELIX 2021-02-23 21:31:24 +01:00 committed by GitHub
parent b607371750
commit 205cb0097b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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