@@ -245,7 +245,7 @@ private boolean deployPgto() {
245245 process = processBuilder .start ();
246246 process .waitFor (60 , TimeUnit .SECONDS );
247247 new File (FileUtil .paths (toolPath , ctlDir )).mkdir ();
248- processBuilder .command ("/bin/sh" , "-c" , String .format ("walminer pgto -i -c %s -s '%s' -e %s -t 4 --source-connstr1='host=%s port=%s username=%s dbanme=%s password=%s'" , toolDir .getAbsolutePath () + "/" + ctlDir , slotName , ((PostgresConfig ) commonDbConfig ).getPgtoPort (), commonDbConfig .getHost (), commonDbConfig .getPort (), commonDbConfig .getUser (), commonDbConfig .getDatabase (), commonDbConfig .getPassword ()));
248+ processBuilder .command ("/bin/sh" , "-c" , String .format ("walminer pgto init -c %s -s '%s' -e %s -t 4 --source-connstr1='host=%s port=%s username=%s dbanme=%s password=%s'" , toolDir .getAbsolutePath () + "/" + ctlDir , slotName , ((PostgresConfig ) commonDbConfig ).getPgtoPort (), commonDbConfig .getHost (), commonDbConfig .getPort (), commonDbConfig .getUser (), commonDbConfig .getDatabase (), commonDbConfig .getPassword ()));
249249 process = processBuilder .start ();
250250 process .waitFor (60 , TimeUnit .SECONDS );
251251 try (BufferedReader reader = new BufferedReader (new InputStreamReader (process .getInputStream ()))) {
@@ -256,7 +256,7 @@ private boolean deployPgto() {
256256 }
257257 int exitCode = process .waitFor ();
258258 System .out .println ("exit code: " + exitCode );
259- processBuilder .command ("/bin/sh" , "-c" , String .format ("walminer pgto -m -c %s" , toolDir .getAbsolutePath () + "/" + ctlDir ));
259+ processBuilder .command ("/bin/sh" , "-c" , String .format ("walminer pgto run -m -c %s" , toolDir .getAbsolutePath () + "/" + ctlDir ));
260260 processBuilder .redirectOutput (ProcessBuilder .Redirect .INHERIT );
261261 process = processBuilder .start ();
262262 process .waitFor (60 , TimeUnit .SECONDS );
0 commit comments