config: clean and expand backup file path
Because the CleanAndExpandPath function wasn't applied to the backup file path, any path that contained a tilde for the home directory didn't work.
This commit is contained in:
parent
76e0388368
commit
1a2cb9b975
@ -633,6 +633,7 @@ func ValidateConfig(cfg Config, usageMessage string) (*Config, error) {
|
|||||||
cfg.Tor.PrivateKeyPath = CleanAndExpandPath(cfg.Tor.PrivateKeyPath)
|
cfg.Tor.PrivateKeyPath = CleanAndExpandPath(cfg.Tor.PrivateKeyPath)
|
||||||
cfg.Tor.WatchtowerKeyPath = CleanAndExpandPath(cfg.Tor.WatchtowerKeyPath)
|
cfg.Tor.WatchtowerKeyPath = CleanAndExpandPath(cfg.Tor.WatchtowerKeyPath)
|
||||||
cfg.Watchtower.TowerDir = CleanAndExpandPath(cfg.Watchtower.TowerDir)
|
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
|
// Create the lnd directory and all other sub directories if they don't
|
||||||
// already exist. This makes sure that directory trees are also created
|
// already exist. This makes sure that directory trees are also created
|
||||||
|
Loading…
Reference in New Issue
Block a user