Check for abs/rel path in db_path

This commit is contained in:
Juan Font Alonso 2021-05-19 01:28:47 +02:00
parent b0adefc540
commit 460a23cf2b
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ func getHeadscaleApp() (*headscale.Headscale, error) {
DerpMap: derpMap,
DBtype: viper.GetString("db_type"),
DBpath: viper.GetString("db_path"),
DBpath: absPath(viper.GetString("db_path")),
DBhost: viper.GetString("db_host"),
DBport: viper.GetInt("db_port"),
DBname: viper.GetString("db_name"),