Skip to content

Commit 7bd2416

Browse files
committed
do not reload shell, as it halts continuation of setup script.
Also, make sure the v-p-d/ directory is created.
1 parent f457951 commit 7bd2416

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bootstrap/manage_django_db_postgres.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ function configure_md5_login(){
9595
# sudo -u postgres psql -tAc "\password postgres"
9696
sudo sed -i "s/\s*local\s*all\s*all\s*peer/local all all md5/" /etc/postgresql/*/main/pg_hba.conf
9797
sudo service postgresql restart
98+
sudo mkdir /etc/postgresql/v-p-d
9899
sudo touch /etc/postgresql/v-p-d/pass_set
99100
sudo chmod +x /etc/postgresql/v-p-d/pass_set
100101
sudo sh -c ' echo "export POSTGRES_PASS=configured" >> /etc/postgresql/v-p-d/pass_set'
101-
exec $SHELL
102+
# exec $SHELL
102103
fi
103104
}
104105

0 commit comments

Comments
 (0)