Merge pull request #5020 from guggero/expand-path

config: clean and expand backup file path
This commit is contained in:
Conner Fromknecht 2021-02-12 09:19:39 -08:00 committed by GitHub
commit 32507bc835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -633,6 +633,7 @@ func ValidateConfig(cfg Config, usageMessage string) (*Config, error) {
cfg.Tor.PrivateKeyPath = CleanAndExpandPath(cfg.Tor.PrivateKeyPath)
cfg.Tor.WatchtowerKeyPath = CleanAndExpandPath(cfg.Tor.WatchtowerKeyPath)
cfg.Watchtower.TowerDir = CleanAndExpandPath(cfg.Watchtower.TowerDir)
cfg.BackupFilePath = CleanAndExpandPath(cfg.BackupFilePath)
// Create the lnd directory and all other sub directories if they don't
// already exist. This makes sure that directory trees are also created