[Fusionforge-commits] FusionForge branch Branch_5_3 updated. d3d254039a13cd3c72a1ff7e1b1838ee771af552

Roland Mas lolando at fusionforge.org
Mon Dec 1 19:06:29 CET 2014


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, Branch_5_3 has been updated
       via  d3d254039a13cd3c72a1ff7e1b1838ee771af552 (commit)
      from  d86342934ef88f8d0a433f06a8c74ceb20853c5b (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 -----------------------------------------------------------------
commit d3d254039a13cd3c72a1ff7e1b1838ee771af552
Author: Roland Mas <lolando at debian.org>
Date:   Mon Dec 1 19:06:23 2014 +0100

    Start/stop PostgreSQL with systemctl when relevant

diff --git a/src/install/install3 b/src/install/install3
index 4884461..0ffcd75 100644
--- a/src/install/install3
+++ b/src/install/install3
@@ -86,7 +86,11 @@ psql_startdb(){
 	fi
 
 	# Might fail if it's already running, so we'll ingnore the result
-	$pgservice start
+	if [ -x $pgservice ] ; then
+	    $pgservice start
+	else
+	    systemctl start postgresql
+	fi
 }
 
 psql_stopdb(){
@@ -100,7 +104,11 @@ psql_stopdb(){
 	fi
 
 	# Might fail if it's already running, so we'll ingnore the result
-	$pgservice stop
+	if [ -x $pgservice ] ; then
+	    $pgservice stop
+	else
+	    systemctl stop postgresql
+	fi
 }
 
 get_config(){
@@ -115,7 +123,7 @@ get_config(){
 find_pghba(){
 	pghbafile="/var/lib/pgsql/data/pg_hba.conf"
 	for v in $PG_VERSIONS ; do
-	    pghbafile="$pghbafile /etc/postgresql/$v/main/pg_hba.conf"
+	    pghbafile="$pghbafile /etc/postgresql/$v/main/pg_hba.conf "
 	done
 	pghbafile="$pghbafile /opt/csw/var/pgdata/pg_hba.conf"
 	for i in $pghbafile

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

Summary of changes:
 src/install/install3 |   14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list