Update nextcloud-install.sh

This commit is contained in:
tschettervictor
2024-09-29 20:27:28 -06:00
committed by GitHub
parent 3b0ae68212
commit a1abe04c00

View File

@@ -234,8 +234,8 @@ else
echo "Failed to create ${APP_NAME} database, aborting"
exit 1
fi
psql -U postgres -c "CREATE USER nextcloud WITH ENCRYPTED PASSWORD '${DB_PASSWORD}';"
psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE ${DB_NAME} TO '${DB_USER}';"
psql -U postgres -c "CREATE USER '${DB_USER}' WITH ENCRYPTED PASSWORD '${DB_PASSWORD}';"
psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE '${DB_NAME}' TO '${DB_USER}';"
psql -U postgres -c "SELECT pg_reload_conf();"
fi