403Webshell
Server IP : 172.67.134.114  /  Your IP : 162.159.115.41
Web Server : Apache/2.4.37
System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User : ricodeal ( 1046)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/webmin/virtual-server/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/webmin/virtual-server/uninstall.pl
# uninstall.pl
# Called when this module is un-installed to delete all cron jobs, init
# scripts and daemons

require 'virtual-server-lib.pl';

sub module_uninstall
{
foreach my $cmd (@all_cron_commands) {
	&delete_cron_script($cmd);
	}

# Turn off lookup-domain action
&foreign_require("init");
&foreign_require("proc");
if (&check_pid_file($pidfile)) {
	&init::stop_action("lookup-domain");
	}
&init::disable_at_boot("lookup-domain");

# Remove PHP-FPM custom systemd-related configs
if ($init::init_mode eq 'systemd' && $gconfig{'os_type'} eq 'redhat-linux') {
	my $sysd_phpfpm_dir = &init::get_systemd_root()."/php-fpm.service.d";
	&unlink_file("$sysd_phpfpm_dir/00-virtualmin.conf");
	rmdir($sysd_phpfpm_dir);
	my $sysd_tmpfilesd = "/etc/tmpfiles.d";
	&unlink_file("$sysd_tmpfilesd/virtualmin-php-fpm.conf");
	&init::restart_systemd();
	}

# Delete API helper
local $api_helper_command = &get_api_helper_command();
if (-r $api_helper_command && !-d $api_helper_command) {
	&unlink_file($api_helper_command);
	}

# Delete custom branding logo
my $brand_file = "$config_directory/brand.info";
if (-r $brand_file) {
	my %brand_info;
	&read_file($brand_file, \%brand_info);
	if ($brand_info{'enabled'} &&
	    $brand_info{'file'} &&
	    $brand_info{'file'} =~ /\Q$module_root_directory\E/) {
		&unlink_file($brand_file);
		}
	}
}

1;


Youez - 2016 - github.com/yon3zu
LinuXploit