Fix APT repos
https://forum.virtualmin.com/t/switch-to-new-webmin-repository-url-doesnt-work/121851/5?u=ilia
This commit is contained in:
+1
-2
@@ -44,8 +44,7 @@ foreach my $repo ($webmin_apt_repo_file, $global_apt_repo_file) {
|
||||
}
|
||||
};
|
||||
foreach my $l (@$lref) {
|
||||
if ($l =~ /^\s*deb\s+((http|https):\/\/download.webmin.com\/download\/repository)\s+sarge\s+contrib/ ||
|
||||
$l =~ /^\s*deb\s+\[signed-by=(\S+)\]\s+((http|https):\/\/download.webmin.com\/download\/repository)\s+sarge\s+contrib/) {
|
||||
if ($l =~ /^\s*deb\s+.*?((http|https):\/\/download.webmin.com\/download\/repository)\s+sarge\s+contrib/) {
|
||||
$l = &$lreffix("deb [signed-by=$webmin_apt_repo_key] $webmin_apt_repo_url stable contrib");
|
||||
$fixed++;
|
||||
}
|
||||
|
||||
@@ -1340,7 +1340,7 @@ foreach my $repo ($webmin_apt_repo_file, $global_apt_repo_file) {
|
||||
next if (!-r $repo);
|
||||
my $lref = &read_file_lines($repo, 1);
|
||||
foreach my $l (@$lref) {
|
||||
if ($l =~ /^\s*deb\s+.*((http|https):\/\/download.webmin.com\/download\/repository)\s+sarge\s+contrib/) {
|
||||
if ($l =~ /^\s*deb\s+.*?((http|https):\/\/download.webmin.com\/download\/repository)\s+sarge\s+contrib/) {
|
||||
$repoerr = &text('notify_aptrepo',
|
||||
$webmin_apt_repo_url);
|
||||
last;
|
||||
|
||||
Reference in New Issue
Block a user