add possibility to create package
This commit is contained in:
parent
a7807f089c
commit
ed7fc9aa7f
6 changed files with 104 additions and 10 deletions
|
@ -5,14 +5,25 @@ module Setup
|
|||
module PostgreSQL
|
||||
extend Templates
|
||||
|
||||
|
||||
|
||||
# attr_accessor :te
|
||||
|
||||
|
||||
def self.init_db
|
||||
system(" -D /opt/pgsql/16/data")
|
||||
end
|
||||
|
||||
def self.make_config
|
||||
pg_hba = render("pg_hba.conf")
|
||||
|
||||
test = render("test", te: "This is a test string")
|
||||
# test = render("test", te: "This is a test string")
|
||||
posgresql_conf = render("postgresql")
|
||||
service = render(
|
||||
"postgresql.service",
|
||||
prefix: "/pkg/postgresql/REL_17_5/",
|
||||
version: "16.5",
|
||||
data_url: "/data/postgresql/16/"
|
||||
)
|
||||
puts test
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue