Update server/setup-database.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
parent
022ec10130
commit
432eec18b4
@ -205,7 +205,7 @@ class SetupDatabase {
|
||||
// External MariaDB
|
||||
if (dbConfig.type === "mariadb") {
|
||||
// If socketPath is provided and not empty, validate it
|
||||
if (process.env.UPTIME_KUMA_DB_SOCKET && process.env.UPTIME_KUMA_DB_SOCKET.trim().length > 0) {
|
||||
if (process.env.UPTIME_KUMA_DB_SOCKET?.trim().length > 0) {
|
||||
dbConfig.socketPath = process.env.UPTIME_KUMA_DB_SOCKET;
|
||||
} else {
|
||||
// socketPath not provided, hostname and port are required
|
||||
|
||||
Loading…
Reference in New Issue
Block a user