Skip to content

Commit 2246cad

Browse files
committed
1 parent d79c376 commit 2246cad

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/Virtualmin/Config/Plugin/Virtualmin.pm

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -377,23 +377,6 @@ sub actions {
377377
$self->logsystem("mv /etc/php8/fpm/php-fpm.conf.default /etc/php8/fpm/php-fpm.conf >/dev/null 2>&1");
378378
}
379379

380-
# Fix default PHP-FPM destroying runtime directory
381-
unless ($gconfig{'os_type'} =~ /debian-linux|ubuntu-linux/) {
382-
my $wwwconf = '/etc/php-fpm.d/www.conf';
383-
my $php_fpm_service_dir = '/etc/systemd/system/php-fpm.service.d';
384-
my $php_fpm_service_override = "$php_fpm_service_dir/override.conf";
385-
if (-r $wwwconf && !-r $php_fpm_service_override) {
386-
my $unit_exists = (system("systemctl cat php-fpm >/dev/null 2>&1") == 0);
387-
if ($unit_exists) {
388-
make_dir($php_fpm_service_dir, oct(755)) unless -d $php_fpm_service_dir;
389-
write_file_contents($php_fpm_service_override,
390-
"[Service]\nRuntimeDirectoryPreserve=yes\n");
391-
$self->logsystem("systemctl daemon-reload");
392-
$self->logsystem("systemctl restart php-fpm");
393-
}
394-
}
395-
}
396-
397380
# Disable mod_php in package managers
398381
if ($gconfig{'os_type'} =~ /debian-linux|ubuntu-linux/) {
399382
# Disable libapache2-mod-php* in Ubuntu/Debian

0 commit comments

Comments
 (0)