#!/bin/bash # Update postgres funtions #GIT_DIR="/home/git_repo" /home/postgresStart.sh && sleep 15 && cd "/home/git_repo/extensiones" &&\ sudo echo "*:*:*:postgres:pg" >> ./.pgpass && chmod 600 ./.pgpass &&\su -c "PGPASSFILE=/.pgpass /usr/local/pgsql/bin/psql -U postgres -d postgres -c \"\i /usr/local/pgsql/check_ext.sql\"" postgres &&\ tail -f /usr/local/pgsql/serverlog