don't create extention if already exist

This commit is contained in:
Praveen Arimbrathodiyil 2016-06-03 14:40:13 +05:30
parent e7d06e85c2
commit 26b727b949

2
debian/grantpriv.sh vendored
View file

@ -25,6 +25,6 @@ su postgres -c "psql -c \"GRANT ALL PRIVILEGES ON DATABASE template1 to $user;\"
}
# enable the pg_trgm extension
su postgres -c "psql -d $dbname -c \"CREATE EXTENSION pg_trgm;\"" || {
su postgres -c "psql -d $dbname -c \"CREATE EXTENSION IF NOT EXISTS pg_trgm;\"" || {
exit 1
}