File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,16 @@ function init_pg() {
17
17
return
18
18
fi
19
19
20
- if [[ ! -f /var/lib/postgresql/13/main/inited.txt ]]; then
21
- sudo -u postgres psql -c " ALTER USER postgres PASSWORD '$DB_PASSWORD ';"
22
- sudo -u postgres psql -c " CREATE DATABASE $DB_NAME ;"
23
- touch /var/lib/postgresql/13/main/inited.txt
24
- fi
25
-
26
20
echo " >> Start database postgre"
27
21
chown -R postgres:postgres /var/lib/postgresql/13/main
28
22
pg_ctlcluster 13 main start
23
+ sleep 3
29
24
25
+ if [[ ! -f /var/lib/postgresql/13/main/inited.txt ]]; then
26
+ sudo -u postgres psql -c " ALTER USER postgres PASSWORD '$DB_PASSWORD ';"
27
+ sudo -u postgres psql -c " CREATE DATABASE $DB_NAME ;"
28
+ touch /var/lib/postgresql/13/main/inited.txt
29
+ fi
30
30
}
31
31
32
32
function init_ng(){
You can’t perform that action at this time.
0 commit comments