diff --git a/postgresql.sh b/postgresql.sh index 49982a5..a06b85c 100644 --- a/postgresql.sh +++ b/postgresql.sh @@ -31,5 +31,7 @@ case $1 in rm -f ${pid} daemonize -u ${user} -c ${PGDATA} -o ${log} -a -e ${log} \ /usr/bin/postgres + + su - postgres -c "echo 'create extension if not exists pgcrypto;' | psql -U postgres" ;; esac