This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, 6.0 has been updated
       via  717202f93701e4c8c858daf1ba4118c0d3694fbb (commit)
      from  4ed2c860726f9a60bc30d4ab8cfb5678ac11e7c7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=717202f93701e4c8c858daf1ba4118c0d3694fbb

commit 717202f93701e4c8c858daf1ba4118c0d3694fbb
Author: Roland Mas <[email protected]>
Date:   Sat Dec 2 15:17:06 2017 +0100

    Use CREATE EXTENSION rather than createlang for PostgreSQL 10 compat

diff --git a/src/post-install.d/db/populate.sh 
b/src/post-install.d/db/populate.sh
index 58f06a2..f3be451 100755
--- a/src/post-install.d/db/populate.sh
+++ b/src/post-install.d/db/populate.sh
@@ -37,9 +37,7 @@ fi
 # Create database
 if ! su - postgres -c 'psql -At -l' | grep "^$database_name|" >/dev/null; then
     su - postgres -c "createdb --template template0 --encoding UNICODE 
$database_name"
-    if ! su - postgres -c "createlang -l $database_name" | grep -q plpgsql; 
then
-       su - postgres -c "createlang plpgsql $database_name"
-    fi
+    echo "CREATE EXTENSION IF NOT EXISTS plpgsql" | su - postgres -c "psql 
$database_name"
 fi
 
 # Create DB user

-----------------------------------------------------------------------

Summary of changes:
 src/post-install.d/db/populate.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to