Skip to content

Commit

Permalink
Remove excess prints
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Apr 22, 2017
1 parent a88f48a commit 2bf2eb3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions lib/Virtualmin/Config/Plugin/Dovecot.pm
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ sub actions {
&dovecot::save_directive($conf, "auth_mechanisms", $am);
}
flush_file_lines();
print "Enabling Dovecot POP3 and IMAP servers\n";
#print "Enabling Dovecot POP3 and IMAP servers\n";
init::enable_at_boot("dovecot");
if (!dovecot::is_dovecot_running()) {
my $err = dovecot::start_dovecot();
print STDERR "Failed to start Dovecot POP3/IMAP server!\n" if ($err);
#print STDERR "Failed to start Dovecot POP3/IMAP server!\n" if ($err);
}
$self->done(1); # OK!
};
Expand Down
2 changes: 1 addition & 1 deletion lib/Virtualmin/Config/Plugin/Net.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sub actions {
$self->spin();
eval {
if (foreign_check("net")) {
print "Configuring resolv.conf to use my DNS server\n";
#print "Configuring resolv.conf to use my DNS server\n";
foreign_require("net", "net-lib.pl");
my $dns = net::get_dns_config();
if (indexof("127.0.0.1", @{$dns->{'nameserver'}}) < 0) {
Expand Down
14 changes: 8 additions & 6 deletions lib/Virtualmin/Config/Plugin/Procmail.pm
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ sub actions {
my @recipes = procmail::get_procmailrc();
my ($defrec, $orgrec);
foreach my $r (@recipes) {
if ($r->{'name'} eq "DEFAULT") {
$defrec = $r;
}
elsif ($r->{'name'} eq "ORGMAIL") {
$orgrec = $r;
}
if ($r->{'name'}) {
if ($r->{'name'} eq "DEFAULT") {
$defrec = $r;
}
elsif ($r->{'name'} eq "ORGMAIL") {
$orgrec = $r;
}
}
}
if ($defrec) {
# Fix up this DEFAULT entry
Expand Down
8 changes: 4 additions & 4 deletions lib/Virtualmin/Config/Plugin/Quotas.pm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sub actions {
my ($dir, $dev, $type, $opts) = mount::filesystem_for_dir("/home");
mount::parse_options($type, $opts);
if (running_in_zone() || &running_in_vserver()) {
print STDERR "Skipping quotas for Vserver or Zones systems\n";
#print STDERR "Skipping quotas for Vserver or Zones systems\n";
return;
}
elsif ($gconfig{'os_type'} =~ /-linux$/) {
Expand All @@ -53,15 +53,15 @@ sub actions {
$mount::options{'groupquota'} = '';
}
else {
print "Skipping quotas: Required kernel support is not enabled.\n";
#print "Skipping quotas: Required kernel support is not enabled.\n";
return;
}
}
elsif ($gconfig{'os_type'} =~ /solaris/) {
$mount::options{'quota'} = '';
}
else {
print STDERR "Don't know how to enable quotas on $gconfig{'real_os_type'} ($gconfig{'os_type'})\n";
#print STDERR "Don't know how to enable quotas on $gconfig{'real_os_type'} ($gconfig{'os_type'})\n";
}
$opts = mount::join_options($type);
my @mounts = mount::list_mounts();
Expand All @@ -77,7 +77,7 @@ sub actions {
$mounts[$idx]->[5]);
my $err = mount::remount_dir($dir, $dev, $type, $opts);
if ($err) {
print STDERR "The filesystem $dir could not be remounted with quotas enabled. You may need to reboot your system, and then enable quotas in the Disk Quotas module.\n";
print STDERR "\nThe filesystem $dir could not be remounted with quotas enabled. You may need to reboot your system, and then enable quotas in the Disk Quotas module.\n";
}
else {
# Activate quotas
Expand Down

0 comments on commit 2bf2eb3

Please sign in to comment.