@@ -271,7 +271,7 @@ func (repman *ReplicationManager) AddFlags(flags *pflag.FlagSet, conf *config.Co
271
271
flag .StringVar (& configPath , "config" , "" , "help message" )
272
272
flag .Parse ()
273
273
274
- if usr == "" {
274
+ if usr == "" && repman != nil {
275
275
usr = repman .OsUser .Name
276
276
}
277
277
flags .StringVar (& conf .MonitoringSystemUser , "user" , "" , "OS User for running repman" )
@@ -1081,6 +1081,8 @@ func (repman *ReplicationManager) initFS(conf config.Config) error {
1081
1081
//test si y'a un repertoire ./.replication-manager/config.toml sinon on le créer depuis embed
1082
1082
//test y'a un repertoire ./.replication-manager/data sinon on le créer
1083
1083
//test y'a un repertoire ./.replication-manager/share sinon on le créer
1084
+ //repman.LogModulePrintf(repman.Conf.Verbose, config.ConstLogModGeneral, config.LvlInfo, "Embeded run config dir : %s", conf.ConfDir)
1085
+
1084
1086
if conf .ConfDirBackup == "" {
1085
1087
repman .Logrus .Fatalf ("Monitoring config backup directory not defined" )
1086
1088
}
@@ -1097,6 +1099,7 @@ func (repman *ReplicationManager) initFS(conf config.Config) error {
1097
1099
os .MkdirAll (conf .BaseDir + "/data" , os .ModePerm )
1098
1100
os .MkdirAll (conf .BaseDir + "/share" , os .ModePerm )
1099
1101
}
1102
+ repman .LogModulePrintf (repman .Conf .Verbose , config .ConstLogModGeneral , config .LvlInfo , "Embeded run config dir : %s" , conf .ConfDir )
1100
1103
1101
1104
if _ , err := os .Stat (conf .ConfDir + "/config.toml" ); os .IsNotExist (err ) {
1102
1105
0 commit comments