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."
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
# Copyright (C) 2011, 2019, Roland Mas
# Copyright (C) 2011, Olivier Berger - Institut Telecom
# Copyright (C) 2014, Inria (Sylvain Beucler)
-# Copyright 2017,2019, Franck Villaume - TrivialDev
+# Copyright 2017,2019,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
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 \
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
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
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/debian_version ]; then echo 'www-data'; elif [ -e /etc/os-release ]; 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 [ -e /etc/os-release ]; then echo 'www'; else echo 'apache'; 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)
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
- systemctl enable postgresql || chkconfig postgresql on
+ chkconfig postgresql on
fi
pg_hba=$(ls /etc/postgresql/*/*/pg_hba.conf /var/lib/pgsql/data/pg_hba.conf 2>/dev/null | tail -1)
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