From 583392eff9d2e0293f16f3eccf7dd91b6f4e1b0e Mon Sep 17 00:00:00 2001 From: Sroka Date: Fri, 27 Nov 2020 22:39:10 +0100 Subject: [PATCH 1/4] Base support for Fedora 33 --- .gitignore | 1 + install/dist/conf/fedora33.conf.php | 229 ++++++++++++++++++ install/dist/lib/fedora33.lib.php | 40 +++ install/lib/install.lib.php | 6 + server/lib/classes/monitor_tools.inc.php | 5 + .../remoteaction_core_module.inc.php | 2 + 6 files changed, 283 insertions(+) create mode 100644 install/dist/conf/fedora33.conf.php create mode 100644 install/dist/lib/fedora33.lib.php diff --git a/.gitignore b/.gitignore index 32f43c2430..81d5108cae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .DS_Store +.idea /nbproject/private/ .phplint-cache *.swp diff --git a/install/dist/conf/fedora33.conf.php b/install/dist/conf/fedora33.conf.php new file mode 100644 index 0000000000..54013ed6de --- /dev/null +++ b/install/dist/conf/fedora33.conf.php @@ -0,0 +1,229 @@ + diff --git a/install/dist/lib/fedora33.lib.php b/install/dist/lib/fedora33.lib.php new file mode 100644 index 0000000000..3dcd7494d3 --- /dev/null +++ b/install/dist/lib/fedora33.lib.php @@ -0,0 +1,40 @@ + diff --git a/install/lib/install.lib.php b/install/lib/install.lib.php index 2ed873d9ba..b59c8ede6b 100644 --- a/install/lib/install.lib.php +++ b/install/lib/install.lib.php @@ -308,6 +308,12 @@ function get_distname() { $distid = 'fedora9'; $distbaseid = 'fedora'; swriteln("Operating System: Fedora 11 or compatible\n"); + } elseif(stristr($content, 'Fedora release 33 (Thirty Three)')) { + $distname = 'Fedora'; + $distver = '33'; + $distid = 'fedora33'; + $distbaseid = 'fedora'; + swriteln("Operating System: Fedora 33 or compatible\n"); } elseif(stristr($content, 'CentOS release 5.2 (Final)')) { $distname = 'CentOS'; $distver = '5.2'; diff --git a/server/lib/classes/monitor_tools.inc.php b/server/lib/classes/monitor_tools.inc.php index dbe702d0dd..ed5a2fe040 100644 --- a/server/lib/classes/monitor_tools.inc.php +++ b/server/lib/classes/monitor_tools.inc.php @@ -290,6 +290,11 @@ class monitor_tools { $distver = '11'; $distid = 'fedora9'; $distbaseid = 'fedora'; + } elseif(stristr($content, 'Fedora release 33 (Thirty Three)')) { + $distname = 'Fedora'; + $distver = '33'; + $distid = 'fedora33'; + $distbaseid = 'fedora'; } elseif(stristr($content, 'CentOS release 5.2 (Final)')) { $distname = 'CentOS'; $distver = '5.2'; diff --git a/server/mods-available/remoteaction_core_module.inc.php b/server/mods-available/remoteaction_core_module.inc.php index ef6e07e95e..bdaba5cb06 100644 --- a/server/mods-available/remoteaction_core_module.inc.php +++ b/server/mods-available/remoteaction_core_module.inc.php @@ -179,6 +179,8 @@ class remoteaction_core_module { //TODO : change this when distribution information has been integrated into server record if(file_exists('/etc/gentoo-release')) { exec("glsa-check -f --nocolor affected"); + }elseif(file_exists('/etc/redhat-release')) { + exec("dnf -y update"); } else { exec("apt-get update"); -- GitLab From 804a0a33501c62cca7330b31b30c8b7144fcd9a6 Mon Sep 17 00:00:00 2001 From: Sroka Date: Sat, 28 Nov 2020 21:49:15 +0100 Subject: [PATCH 2/4] Base support for Fedora 32 --- install/dist/conf/fedora32.conf.php | 229 +++++++++++++++++++++++ install/dist/conf/fedora33.conf.php | 2 +- install/dist/lib/fedora32.lib.php | 40 ++++ install/lib/install.lib.php | 8 +- server/lib/classes/monitor_tools.inc.php | 5 + 5 files changed, 282 insertions(+), 2 deletions(-) create mode 100644 install/dist/conf/fedora32.conf.php create mode 100644 install/dist/lib/fedora32.lib.php diff --git a/install/dist/conf/fedora32.conf.php b/install/dist/conf/fedora32.conf.php new file mode 100644 index 0000000000..76c45e5352 --- /dev/null +++ b/install/dist/conf/fedora32.conf.php @@ -0,0 +1,229 @@ + diff --git a/install/dist/conf/fedora33.conf.php b/install/dist/conf/fedora33.conf.php index 54013ed6de..5fe00b92fe 100644 --- a/install/dist/conf/fedora33.conf.php +++ b/install/dist/conf/fedora33.conf.php @@ -28,7 +28,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -//*** Fedora 9 default settings +//*** Fedora 33 default settings //* Main $conf['language'] = 'en'; diff --git a/install/dist/lib/fedora32.lib.php b/install/dist/lib/fedora32.lib.php new file mode 100644 index 0000000000..3dcd7494d3 --- /dev/null +++ b/install/dist/lib/fedora32.lib.php @@ -0,0 +1,40 @@ + diff --git a/install/lib/install.lib.php b/install/lib/install.lib.php index b59c8ede6b..3d77443372 100644 --- a/install/lib/install.lib.php +++ b/install/lib/install.lib.php @@ -308,7 +308,13 @@ function get_distname() { $distid = 'fedora9'; $distbaseid = 'fedora'; swriteln("Operating System: Fedora 11 or compatible\n"); - } elseif(stristr($content, 'Fedora release 33 (Thirty Three)')) { + } elseif(stristr($content, 'Fedora release 32 (Thirty Two)')) { + $distname = 'Fedora'; + $distver = '32'; + $distid = 'fedora32'; + $distbaseid = 'fedora'; + swriteln("Operating System: Fedora 32 or compatible\n"); + } elseif(stristr($content, 'Fedora release 33 (Thirty Three)')) { $distname = 'Fedora'; $distver = '33'; $distid = 'fedora33'; diff --git a/server/lib/classes/monitor_tools.inc.php b/server/lib/classes/monitor_tools.inc.php index ed5a2fe040..b50fd5afb8 100644 --- a/server/lib/classes/monitor_tools.inc.php +++ b/server/lib/classes/monitor_tools.inc.php @@ -290,6 +290,11 @@ class monitor_tools { $distver = '11'; $distid = 'fedora9'; $distbaseid = 'fedora'; + } elseif(stristr($content, 'Fedora release 32 (Thirty Two)')) { + $distname = 'Fedora'; + $distver = '32'; + $distid = 'fedora32'; + $distbaseid = 'fedora'; } elseif(stristr($content, 'Fedora release 33 (Thirty Three)')) { $distname = 'Fedora'; $distver = '33'; -- GitLab From fa53b6070f47fc539362101af134d38ec95cf665 Mon Sep 17 00:00:00 2001 From: Sroka Date: Sun, 29 Nov 2020 21:59:43 +0100 Subject: [PATCH 3/4] Fix php_fpm_socket_dir and cgi_socket --- install/dist/conf/fedora32.conf.php | 4 ++-- install/dist/conf/fedora33.conf.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install/dist/conf/fedora32.conf.php b/install/dist/conf/fedora32.conf.php index 76c45e5352..6701bb8729 100644 --- a/install/dist/conf/fedora32.conf.php +++ b/install/dist/conf/fedora32.conf.php @@ -208,12 +208,12 @@ $conf['nginx']['vhost_conf_dir'] = '/etc/nginx/sites-available'; $conf['nginx']['vhost_conf_enabled_dir'] = '/etc/nginx/sites-enabled'; $conf['nginx']['init_script'] = 'nginx'; $conf['nginx']['vhost_port'] = '8080'; -$conf['nginx']['cgi_socket'] = '/var/run/fcgiwrap.socket'; +$conf['nginx']['cgi_socket'] = '/run/fcgiwrap.sock'; $conf['nginx']['php_fpm_init_script'] = 'php-fpm'; $conf['nginx']['php_fpm_ini_path'] = '/etc/php.ini'; $conf['nginx']['php_fpm_pool_dir'] = '/etc/php-fpm.d'; $conf['nginx']['php_fpm_start_port'] = 9010; -$conf['nginx']['php_fpm_socket_dir'] = '/var/lib/php-fpm'; +$conf['nginx']['php_fpm_socket_dir'] = '/run/php-fpm'; //* vlogger $conf['vlogger']['config_dir'] = '/etc'; diff --git a/install/dist/conf/fedora33.conf.php b/install/dist/conf/fedora33.conf.php index 5fe00b92fe..873376fa2c 100644 --- a/install/dist/conf/fedora33.conf.php +++ b/install/dist/conf/fedora33.conf.php @@ -208,12 +208,12 @@ $conf['nginx']['vhost_conf_dir'] = '/etc/nginx/sites-available'; $conf['nginx']['vhost_conf_enabled_dir'] = '/etc/nginx/sites-enabled'; $conf['nginx']['init_script'] = 'nginx'; $conf['nginx']['vhost_port'] = '8080'; -$conf['nginx']['cgi_socket'] = '/var/run/fcgiwrap.socket'; +$conf['nginx']['cgi_socket'] = '/run/fcgiwrap.sock'; $conf['nginx']['php_fpm_init_script'] = 'php-fpm'; $conf['nginx']['php_fpm_ini_path'] = '/etc/php.ini'; $conf['nginx']['php_fpm_pool_dir'] = '/etc/php-fpm.d'; $conf['nginx']['php_fpm_start_port'] = 9010; -$conf['nginx']['php_fpm_socket_dir'] = '/var/lib/php-fpm'; +$conf['nginx']['php_fpm_socket_dir'] = '/run/php-fpm'; //* vlogger $conf['vlogger']['config_dir'] = '/etc'; -- GitLab From f17a975d39192630bdfc14744965fb23f91eceee Mon Sep 17 00:00:00 2001 From: Marius Burkard Date: Wed, 9 Dec 2020 09:41:45 +0100 Subject: [PATCH 4/4] Apply 1 suggestion(s) to 1 file(s) --- server/mods-available/remoteaction_core_module.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/mods-available/remoteaction_core_module.inc.php b/server/mods-available/remoteaction_core_module.inc.php index bdaba5cb06..eea8fd6941 100644 --- a/server/mods-available/remoteaction_core_module.inc.php +++ b/server/mods-available/remoteaction_core_module.inc.php @@ -179,7 +179,7 @@ class remoteaction_core_module { //TODO : change this when distribution information has been integrated into server record if(file_exists('/etc/gentoo-release')) { exec("glsa-check -f --nocolor affected"); - }elseif(file_exists('/etc/redhat-release')) { + } elseif(file_exists('/etc/redhat-release')) { exec("dnf -y update"); } else { -- GitLab