diff --git a/cmd/root.go b/cmd/root.go index 38e8a0db969c56dbafe2e238a3fb6f9dc8e7eebd..b7341cf5bb1d8cd374f42d46f079560f152acc93 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -57,10 +57,16 @@ var rootCmd = &cobra.Command{ certPath := viper.GetString("certPath") keyPath := viper.GetString("keyPath") localAddress := fmt.Sprintf("0.0.0.0:%d", viper.GetInt("port")) - fbCreds, err := utils.ExpandPath(viper.GetString("firebaseCredentialsPath")) + fbCreds, err := utils.ExpandPath( + viper.GetString("firebaseCredentialsPath")) if err != nil { jww.FATAL.Panicf("Unable to expand credentials path: %+v", err) } + permissioningCert, err := utils.ExpandPath( + viper.GetString("permissioningCertPath")) + if err != nil { + jww.FATAL.Panicf("Unable to expand permissioning certificate path: %+v", err) + } // Populate params NotificationParams = notifications.Params{ @@ -86,7 +92,8 @@ var rootCmd = &cobra.Command{ ) // Set up the notifications server connections - err = setupConnection(impl, viper.GetString("permissioningCertPath"), viper.GetString("permissioningAddress")) + err = setupConnection(impl, permissioningCert, + viper.GetString("permissioningAddress")) if err != nil { jww.FATAL.Panicf("Failed to set up connections: %+v", err) }