/etc/init.d/postgresql start
su postgres
psql -U postgres -c "drop database connectedcare"
I am running the above shell command in the jenkins execute shell command.
Got this error :
psql: FATAL: Peer authentication failed for user "postgres"
I then updated the /etc/postgresql/9.1/main/pg_hba.conf based on Stackoverflow question
However the command just keeps executing and never finishes.
How can I create a database in jenkins shell command ( postregresql )