⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
webmin
/
virtual-server
/
View File Name :
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;