Skip to content

Commit

Permalink
do not reload shell, as it halts continuation of setup script.
Browse files Browse the repository at this point in the history
Also, make sure the v-p-d/ directory is created.
  • Loading branch information
ccurtin committed Oct 17, 2016
1 parent f457951 commit 7bd2416
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootstrap/manage_django_db_postgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ function configure_md5_login(){
# sudo -u postgres psql -tAc "\password postgres"
sudo sed -i "s/\s*local\s*all\s*all\s*peer/local all all md5/" /etc/postgresql/*/main/pg_hba.conf
sudo service postgresql restart
sudo mkdir /etc/postgresql/v-p-d
sudo touch /etc/postgresql/v-p-d/pass_set
sudo chmod +x /etc/postgresql/v-p-d/pass_set
sudo sh -c ' echo "export POSTGRES_PASS=configured" >> /etc/postgresql/v-p-d/pass_set'
exec $SHELL
# exec $SHELL
fi
}

Expand Down

0 comments on commit 7bd2416

Please sign in to comment.