diff --git a/cmd/root.go b/cmd/root.go index 8b7859545..112b08545 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -57,7 +57,7 @@ func InitCmd() { AddCommands() // the `OnInitialize` callbacks are called right before PreRun - cobra.OnInitialize(initGlobalConfig, createLogger, task.NewRunner().Run) + cobra.OnInitialize(initGlobalConfig, createLogger, task.RunTasks) } // initConfig reads in config file and ENV variables if set. diff --git a/constants/db.go b/constants/db.go index ba22d699a..10018126c 100644 --- a/constants/db.go +++ b/constants/db.go @@ -19,7 +19,7 @@ const ( // constants for installing db and fdw images const ( DatabaseVersion = "12.1.0" - FdwVersion = "0.0.27-rc.1" + FdwVersion = "0.0.27-rc.2" // The 12.1.0 image uses the older jar format 12.1.0-v2 is the same version of postgres, // just packaged as gzipped tar files (consistent with oras, faster to unzip). Once everyone is diff --git a/task/runner.go b/task/runner.go index 6601183e0..2ec9a34c3 100644 --- a/task/runner.go +++ b/task/runner.go @@ -15,6 +15,10 @@ type Runner struct { shouldRun bool } +func RunTasks() { + NewRunner().Run() +} + func NewRunner() *Runner { r := new(Runner) r.currentState, _ = statefile.LoadState()