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  0d9bd1fcf3d3a987e38b1d1d21dae77f7ed3d8d3 (commit)
      from  f3caacfa432aa1d40c0ba1ca2f30a64836c74af6 (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=0d9bd1fcf3d3a987e38b1d1d21dae77f7ed3d8d3

commit 0d9bd1fcf3d3a987e38b1d1d21dae77f7ed3d8d3
Author: Franck Villaume <[email protected]>
Date:   Fri Apr 16 11:49:02 2021 +0000

    backport fix for install with SUSE support

diff --git a/autoinstall/build.sh b/autoinstall/build.sh
index e078ddc..be5eea6 100755
--- a/autoinstall/build.sh
+++ b/autoinstall/build.sh
@@ -200,7 +200,7 @@ if [ -e /etc/debian_version ]; then
     build_deb
 elif [ -e /etc/redhat-release ]; then
     build_rpm
-elif [ -e /etc/os-release ]; then
+elif [[ ! -z `cat /etc/os-release | grep 'SUSE'` ]]; then
     build_suse_rpm
 else
     echo "Automated package building is not supported for this distribution."
diff --git a/autoinstall/install-gui.sh b/autoinstall/install-gui.sh
index 32caa03..553cf1a 100755
--- a/autoinstall/install-gui.sh
+++ b/autoinstall/install-gui.sh
@@ -7,7 +7,7 @@ if [ -e /etc/debian_version ]; then
     apt-get install -y xorg nodm xfce4 gnome-icon-theme
     sed -i -e 's/^NODM_ENABLED=.*/NODM_ENABLED=true/' -e 
's/^NODM_USER=.*/NODM_USER=root/' /etc/default/nodm
     /etc/init.d/nodm restart
-elif [ -e /etc/os-release ]; then
+elif [[ ! -z `cat /etc/os-release | grep 'SUSE'`]]; then
     suse_check_release
     suse_install_rpms patterns-openSUSE-xfce_basis
 else
diff --git a/autoinstall/install-src.sh b/autoinstall/install-src.sh
index 7192d9d..4bd8847 100755
--- a/autoinstall/install-src.sh
+++ b/autoinstall/install-src.sh
@@ -4,7 +4,7 @@
 # Copyright (C) 2011  Roland Mas
 # Copyright (C) 2011  Olivier Berger - Institut Telecom
 # Copyright (C) 2014  Inria (Sylvain Beucler)
-# Copyright 2017, Franck Villaume - TrivialDev
+# Copyright 2017,2021 Franck Villaume - TrivialDev
 #
 # This file is part of FusionForge. FusionForge is free software;
 # you can redistribute it and/or modify it under the terms of the
@@ -61,7 +61,7 @@ if [ -e /etc/debian_version ]; then
        if ! dpkg-vendor --is Ubuntu; then
                apt-get install locales-all  # 
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1394929
        fi
-elif [ -e /etc/os-release ]; then
+elif [[ ! -z `cat /etc/os-release | grep 'SUSE'` ]]; then
        suse_check_release
        suse_install_repos
        suse_install_rpms make gettext-runtime php7 php7-gettext php7-posix 
php7-pgsql \
diff --git a/autoinstall/install.sh b/autoinstall/install.sh
index 0ac25ec..de29af6 100755
--- a/autoinstall/install.sh
+++ b/autoinstall/install.sh
@@ -54,7 +54,7 @@ if [ -e /etc/debian_version ]; then
                        apt-get install locales-all  # 
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1394929
                fi
        fi
-elif [ -e /etc/os-release ]; then
+elif [[ ! -z `cat /etc/os-release | grep "SUSE"` ]]; then
        suse_check_release
        suse_install_repos
        if rpm -q fusionforge >/dev/null ; then
diff --git a/autoinstall/uninstall.sh b/autoinstall/uninstall.sh
index b3a133b..b1b1012 100755
--- a/autoinstall/uninstall.sh
+++ b/autoinstall/uninstall.sh
@@ -3,7 +3,7 @@
 if [ -e /etc/debian_version ]; then
     aptitude purge ~nforge ~npostgres ~nnss-pgsql ~napache2 ~nphp ~npostfix 
~nexim4
 
-elif [ -e /etc/os-release ]; then
+elif [[ ! -z `cat /etc/os-release | grep "SUSE"` ]]; then
     zypper remove -y 'fusionforge*' postgresql-server
     rm -f /etc/cron.d/fusionforge-*
 else
diff --git a/autoinstall/update.sh b/autoinstall/update.sh
index 6845159..413fad9 100755
--- a/autoinstall/update.sh
+++ b/autoinstall/update.sh
@@ -4,7 +4,7 @@
 if [ -e /etc/debian_version ]; then
     aptitude update
     aptitude -y dist-upgrade
-elif [ -e /etc/os-release ]; then
+elif [[ ! -z `cat /etc/os-release | grep "SUSE"` ]]; then
     zypper update -y
 else
     yum upgrade
diff --git a/src/GNUmakefile.defaults b/src/GNUmakefile.defaults
index 91979fe..46095ca 100644
--- a/src/GNUmakefile.defaults
+++ b/src/GNUmakefile.defaults
@@ -43,7 +43,7 @@ INSTALL=install
 CP_R=cp -r --preserve=timestamps
 
 # Hard-coded detection of distro-specific Apache configuration
-apache_user=$(shell if [ -e /etc/redhat-release ]; then echo 'apache'; elif [ 
-e /etc/os-release ]; then echo 'wwwrun'; else echo 'www-data'; fi)
-apache_group=$(shell if [ -e /etc/redhat-release ]; then echo 'apache'; elif [ 
-e /etc/os-release ]; then echo 'www'; else echo 'www-data'; fi)
+apache_user=$(shell if [ -e /etc/redhat-release ]; then echo 'apache'; elif [ 
-e /etc/debian_version ]; then echo 'www-data'; elif [[ ! -z `cat 
/etc/os-release | grep "SUSE"` ]]; then echo 'wwwrun'; else echo 'apache'; fi)
+apache_group=$(shell if [ -e /etc/redhat-release ]; then echo 'apache'; elif [ 
-e /etc/debian_version ]; then echo 'www-data'; elif [[ ! -z `cat 
/etc/os-release| grep "SUSE"` ]]; then echo 'www'; else echo 'apache'; fi)
 apache_service=$(shell if [ -e /etc/redhat-release ]; then echo 'httpd'; else 
echo 'apache2'; fi)
-ssh_service=$(shell if [ -e /etc/redhat-release ]; then echo 'sshd'; elif [ -e 
/etc/os-release ]; then echo 'sshd'; else echo 'ssh'; fi)
+ssh_service=$(shell if [ -e /etc/debian_version ]; then echo 'ssh'; else echo 
'sshd'; fi)
diff --git a/src/post-install.d/db/server.sh b/src/post-install.d/db/server.sh
index c189217..27fd585 100755
--- a/src/post-install.d/db/server.sh
+++ b/src/post-install.d/db/server.sh
@@ -34,7 +34,7 @@ case "$1" in
                        fi
                        chkconfig postgresql on
                fi
-               if [ -e /etc/os-release ]; then
+               if [[ ! -z `cat /etc/os-release | grep "SUSE"` ]]; then
                        service postgresql start  # creates initial db
                        chkconfig postgresql on
                fi
diff --git a/src/post-install.d/web/web.sh b/src/post-install.d/web/web.sh
index b7a832c..abb6807 100755
--- a/src/post-install.d/web/web.sh
+++ b/src/post-install.d/web/web.sh
@@ -119,7 +119,7 @@ case "$1" in
                if [ -x /usr/sbin/a2enmod ]; then
                        a2enmod version 2>/dev/null || true  # opensuse..
                        a2enmod macro
-                       if [ -e /etc/os-release ]; then
+                       if [[ ! -z `cat /etc/os-release | grep "SUSE"` ]]; then
                                a2enmod php7
                                a2enmod mpm_itk
                                a2enmod mod_access_compat

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

Summary of changes:
 autoinstall/build.sh            | 2 +-
 autoinstall/install-gui.sh      | 2 +-
 autoinstall/install-src.sh      | 4 ++--
 autoinstall/install.sh          | 2 +-
 autoinstall/uninstall.sh        | 2 +-
 autoinstall/update.sh           | 2 +-
 src/GNUmakefile.defaults        | 6 +++---
 src/post-install.d/db/server.sh | 2 +-
 src/post-install.d/web/web.sh   | 2 +-
 9 files changed, 12 insertions(+), 12 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