You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
324 B
13 lines
324 B
12 months ago
|
#!/bin/sh
|
||
|
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
||
|
|
||
|
t_Log "Running $0 - PostgreSQL create database test"
|
||
|
if (t_GetPkgRel basesystem | grep -q el9)
|
||
|
then
|
||
|
t_Log "This is a C9 system. Postgres needs to be initialized."
|
||
|
/usr/bin/postgresql-setup --initdb
|
||
|
fi
|
||
|
|
||
|
su - postgres -c 'createdb pg_testdb'
|
||
|
t_CheckExitStatus $?
|