File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ if [ "$1" = 'start' ]; then
66 # config
77 sed -i " s/^.*'R_DB_NAME'.*$/define('R_DB_NAME', 'restyaboard');/g" \
88 /usr/share/nginx/html/server/php/config.inc.php
9- sed -i " s/^.*'R_DB_USER'.*$/define('R_DB_USER', 'restya ');/g" \
9+ sed -i " s/^.*'R_DB_USER'.*$/define('R_DB_USER', '${POSTGRES_ENV_POSTGRES_USER} ');/g" \
1010 /usr/share/nginx/html/server/php/config.inc.php
1111 sed -i " s/^.*'R_DB_PASSWORD'.*$/define('R_DB_PASSWORD', '${POSTGRES_ENV_POSTGRES_PASSWORD} ');/g" \
1212 /usr/share/nginx/html/server/php/config.inc.php
@@ -43,8 +43,7 @@ if [ "$1" = 'start' ]; then
4343 fi
4444 sleep 1
4545 done
46- psql -c " CREATE USER restya WITH ENCRYPTED PASSWORD '${PGPASSWORD} '"
47- psql -c " CREATE DATABASE restyaboard OWNER restya ENCODING 'UTF8'"
46+ psql -c " CREATE DATABASE restyaboard ENCODING 'UTF8'"
4847 if [ " $? " = 0 ]; then
4948 psql -d restyaboard -f /usr/share/nginx/html/sql/restyaboard_with_empty_data.sql
5049 fi
You can’t perform that action at this time.
0 commit comments