nextcloud&notify-push: allow to adjust the DATABASE_TYPE

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2024-10-18 17:50:31 +02:00
parent 9bf38d2795
commit 4be6d492ea
3 changed files with 23 additions and 6 deletions

View file

@ -17,6 +17,11 @@ done
POSTGRES_USER="oc_$POSTGRES_USER"
export POSTGRES_USER
# Check that db type is not empty
if [ -z "$DATABASE_TYPE" ]; then
export DATABASE_TYPE=postgres
fi
# Fix false database connection on old instances
if [ -f "/var/www/html/config/config.php" ]; then
sleep 2