We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0595b68 commit 4a61e80Copy full SHA for 4a61e80
allinone/service.sh
@@ -17,16 +17,16 @@ function init_pg() {
17
return
18
fi
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
echo ">> Start database postgre"
27
chown -R postgres:postgres /var/lib/postgresql/13/main
28
pg_ctlcluster 13 main start
+ sleep 3
29
+ if [[ ! -f /var/lib/postgresql/13/main/inited.txt ]];then
+ sudo -u postgres psql -c "ALTER USER postgres PASSWORD '$DB_PASSWORD';"
+ sudo -u postgres psql -c "CREATE DATABASE $DB_NAME;"
+ touch /var/lib/postgresql/13/main/inited.txt
+ fi
30
}
31
32
function init_ng(){
0 commit comments