...
This commit is contained in:
27
pkg/system/builders/postgresql/cmd/main.go
Normal file
27
pkg/system/builders/postgresql/cmd/main.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/freeflowuniverse/heroagent/pkg/system/builders/postgresql"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Create a new PostgreSQL builder with default settings
|
||||
builder := postgresql.NewBuilder()
|
||||
|
||||
// Build PostgreSQL
|
||||
if err := builder.Build(); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error building PostgreSQL: %v\n", err)
|
||||
os.Exit(1) // Ensure we exit with non-zero status on error
|
||||
}
|
||||
|
||||
// Run PostgreSQL in screen
|
||||
if err := builder.PostgresBuilder.RunPostgresInScreen(); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error running PostgreSQL in screen: %v\n", err)
|
||||
os.Exit(1) // Ensure we exit with non-zero status on error
|
||||
}
|
||||
|
||||
fmt.Println("PostgreSQL build completed successfully!")
|
||||
}
|
Reference in New Issue
Block a user