fix: warning message when using MYSQL_PASSWORD env

This commit is contained in:
2025-03-12 14:13:21 +01:00
parent 489dfdf842
commit 0bc7497512
4 changed files with 25 additions and 23 deletions

View File

@@ -24,7 +24,10 @@ SOFTWARE.
package pkg
import "time"
import (
"path/filepath"
"time"
)
const tmpPath = "/tmp/backup"
const gpgHome = "/config/gnupg"
@@ -43,6 +46,7 @@ var (
backupSize int64 = 0
startTime = time.Now()
backupRescueMode = false
mysqlClientConfig = filepath.Join(tmpPath, "my.cnf")
)
// dbHVars Required environment variables for database