File tree Expand file tree Collapse file tree
lib/Virtualmin/Config/Plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,20 +85,9 @@ sub actions {
8585 }
8686 # Disable auto updates and make Webmin install security updates
8787 foreign_require(" init" );
88- my @auto_update_services = (
89- " unattended-upgrades" , # Debian/Ubuntu
90-
91- " dnf-automatic.timer" , # Fedora/RHEL/CentOS (default)
92- " dnf-automatic-install.timer" ,
93- " dnf-automatic-download.timer" ,
94- " dnf-automatic-notifyonly.timer" ,
95- );
96- foreach my $service (@auto_update_services ) {
97- if (init::action_status($service )) {
98- init::stop_action($service );
99- init::disable_at_boot($service );
100- init::mask_action($service );
101- }
88+ foreign_require(" package-updates" );
89+ foreach (@package_updates::auto_update_services ) {
90+ &init::deactivate_action($_ , 0) if defined &init::deactivate_action;
10291 }
10392 $self -> done(1); # OK!
10493 };
You can’t perform that action at this time.
0 commit comments