* Tue Mar 26 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-4.sme

- remove last references to php <7.2 [SME: 12550]
This commit is contained in:
2024-03-26 22:11:49 -04:00
parent d24cc60735
commit dd31b87a4e
28 changed files with 17 additions and 144 deletions

View File

@@ -5,10 +5,6 @@ my $ver; my $service; my $file; my $event;
#old e-smith-php
foreach $file (qw(/etc/php.ini
/opt/remi/php55/root/etc/php.ini
/opt/remi/php56/root/etc/php.ini
/etc/opt/remi/php70/php.ini
/etc/opt/remi/php71/php.ini
/etc/opt/remi/php72/php.ini
/etc/opt/remi/php73/php.ini
/etc/opt/remi/php74/php.ini
@@ -45,7 +41,7 @@ for $event (qw(smeserver-php-update webapps-update)){
templates2events($file, $event);
}
foreach $ver (qw( 55 56 70 71 72 73 74 80 81 82 83)){
foreach $ver (qw( 72 73 74 80 81 82 83)){
foreach $service ( "php$ver-php-fpm" ){
foreach $event (qw(webapps-update ibay-create ibay-delete ibay-modify ibay-modify-files ibay-modify-servers )){
safe_symlink("reload-or-restart", "root/etc/e-smith/events/$event/services2adjust/$service");
@@ -67,11 +63,6 @@ foreach $file (qw( /etc/php-fpm.conf
foreach $file (qw( /etc/sysconfig/php-fpm
/etc/logrotate.d/php-fpm
/etc/logrotate.d/php55-php-fpm
/etc/logrotate.d/php56-php-fpm
/etc/logrotate.d/php70-php-fpm
/etc/logrotate.d/php70-php-fpm
/etc/logrotate.d/php71-php-fpm
/etc/logrotate.d/php72-php-fpm
/etc/logrotate.d/php73-php-fpm
/etc/logrotate.d/php74-php-fpm
@@ -83,23 +74,8 @@ foreach $file (qw( /etc/sysconfig/php-fpm
templates2events($file, qw(webapps-update bootstrap-console-save smeserver-php-update));
}
#php5*
foreach $ver (qw( 55 56 )){
foreach $file ( "/opt/remi/php$ver/root/etc/php-fpm.conf",
"/opt/remi/php$ver/root/etc/php-fpm.d/www.conf",
"/opt/remi/php$ver/root/etc/php-fpm.d/ibays.conf",
"/opt/remi/php$ver/root/etc/php-fpm.d/custom.conf" ){
templates2events($file, qw(webapps-update bootstrap-console-save ibay-create ibay-delete ibay-modify ibay-modify-files ibay-modify-servers smeserver-php-update));
#safe_symlink('/etc/e-smith/templates-default/template-begin-ini', "root/etc/e-smith/templates$file/template-begin");
}
foreach $file ( "/opt/remi/php$ver/root/etc/sysconfig/php-fpm" ){
templates2events($file, qw(webapps-update bootstrap-console-save));
}
}
#php7*
foreach $ver (qw( 70 71 72 73 74 80 81 82 83)){
foreach $ver (qw( 72 73 74 80 81 82 83)){
foreach $file ( "/etc/opt/remi/php$ver/php-fpm.conf",
"/etc/opt/remi/php$ver/php-fpm.d/www.conf",
"/etc/opt/remi/php$ver/php-fpm.d/ibays.conf",
@@ -122,17 +98,6 @@ foreach my $event (qw( ibay-create ibay-delete ibay-modify ibay-modify-files iba
event_link( "php-pool-customs", $event, "90");
}
# systemd units
#foreach $ver (qw( 55 56 70 71 72 73 74 )){
#$service = "php$ver-php-fpm.service";
#safe_symlink("../$service", "root/usr/lib/systemd/system/multi-user.target.wants/$service");
#safe_symlink("../$service", "root/usr/lib/systemd/system/sme-server.target.wants/$service");
#}
#$service = "php-fpm.service";
#safe_symlink("../$service", "root/usr/lib/systemd/system/multi-user.target.wants/$service");
#safe_symlink("../$service", "root/usr/lib/systemd/system/sme-server.target.wants/$service");
#webapps
$event = 'webapps-update';
templates2events("/etc/my.cnf", $event);