From 9a70f780797a0c151e15579e33857c655d10d1b7 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 2 Feb 2021 21:01:42 -0300 Subject: [PATCH] add pgcrypto --- postgresql.sh | 2 ++ 1 file changed, 2 insertions(+) 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