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.1 has been updated
via 823c5ea5ab7e0b842579d7f40fd3b887b520bd95 (commit)
from 7f2e5481182cc76381c0f3bf6dfea945da023b1c (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=823c5ea5ab7e0b842579d7f40fd3b887b520bd95
commit 823c5ea5ab7e0b842579d7f40fd3b887b520bd95
Author: Roland Mas <[email protected]>
Date: Tue Oct 8 12:51:13 2019 +0200
Use systemctl rather than service when available
diff --git a/src/post-install.d/db/server.sh b/src/post-install.d/db/server.sh
index 87165a1..a8b8f98 100755
--- a/src/post-install.d/db/server.sh
+++ b/src/post-install.d/db/server.sh
@@ -23,6 +23,10 @@
database_name=$(forge_get_config database_name)
database_user=$(forge_get_config database_user)
+if [ -d /run/systemd/system ]; then
+ is_systemd=1
+fi
+
case "$1" in
configure)
# Create default configuration files if needed
@@ -78,9 +82,14 @@ case "$1" in
fi
if [ $restart = 1 ] || ! service postgresql status >/dev/null;
then
- service postgresql restart
+ a=restart
+ else
+ a=reload
+ fi
+ if [ -n "$is_systemd" ] ; then
+ systemctl $a postgresql
else
- service postgresql reload
+ service postgresql $a
fi
;;
-----------------------------------------------------------------------
Summary of changes:
src/post-install.d/db/server.sh | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits