mirror of
https://github.com/webmin/webmin.git
synced 2026-02-28 08:22:30 +00:00
Fix as the small limit is much smaller
Some checks failed
webmin.dev: webmin/webmin / build (push) Has been cancelled
Some checks failed
webmin.dev: webmin/webmin / build (push) Has been cancelled
(does it even make sense to have?) https://forum.virtualmin.com/t/backup-and-restore-failures-no-space-left-on-device/136639/32?u=ilia
This commit is contained in:
@@ -85,7 +85,7 @@ my @rv = ({ 'type' => 'html',
|
||||
|
||||
# Check if the filesystem the Webmin temp dir is on is too small
|
||||
my $tmp = $gconfig{'tempdir'} || &default_webmin_temp_dir();
|
||||
my $small = $gconfig{'tempdir_min_size'} || 10*1024*1024*1024; # 10 GB
|
||||
my $small = $gconfig{'tempdir_min_size'} || 10*1024*1024; # 10 MB
|
||||
foreach my $disk (sort { length($b->{'dir'}) <=> length($a->{'dir'}) } @$disks) {
|
||||
if (&is_under_directory($disk->{'dir'}, $tmp)) {
|
||||
if ($disk->{'total'} <= $small && &foreign_available("webmin")) {
|
||||
|
||||
Reference in New Issue
Block a user