Skip to content

Commit

Permalink
don't source bashrc. Was causing parsing issues with colors & unecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurtin committed Oct 10, 2016
1 parent db6a2f8 commit 1f28e65
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bootstrap/manage_django_db_postgres.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
source /bin/colors
source /etc/bash.bashrc
source /etc/postgresql/9.6/main/pass_set
### CHECK PYTHON MODULES ARE INSTALLED ###
function check_module(){
python -c "import ${1}" 2> /dev/null
Expand Down Expand Up @@ -88,7 +88,9 @@ 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 sh -c ' echo "export POSTGRES_PASS=configured" >> /etc/bash.bashrc'
sudo touch /etc/postgresql/9.6/main/pass_set
sudo chmod +x /etc/postgresql/9.6/main/pass_set
sudo sh -c ' echo "export POSTGRES_PASS=configured" >> /etc/postgresql/9.6/main/pass_set'
exec $SHELL
}

Expand Down

0 comments on commit 1f28e65

Please sign in to comment.