Skip to content

Commit

Permalink
Default repo selector to stable repo after upgrade to Plus
Browse files Browse the repository at this point in the history
  • Loading branch information
sbeaver-netgate authored and Glen Barber committed Jan 24, 2022
1 parent fccb675 commit c83b195
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/etc/inc/pkg-utils.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1705,11 +1705,11 @@ function save_repo($json) {
unlink($f);
}

// If config.xml still contains a reference to the custom repo, replace it
if ($config['system']['pkg_repo_conf_path'] == "{$repopath}/{$g['product_name']}-repo-custom.conf") {
$config['system']['pkg_repo_conf_path'] = "/usr/local/share/pfSense/pkg/repos/pfSense-repo-next.conf";
// If config.xml still contains a reference to the custom repo, replace it with the "stable" repository definition
if (strpos($config['system']['pkg_repo_conf_path'], "custom") !== false) {
$config['system']['pkg_repo_conf_path'] = "/usr/local/share/pfSense/pkg/repos/pfSense-repo.conf";
write_config("-NoReMoTeBaCkUp");
pkg_switch_repo("/usr/local/share/pfSense/pkg/repos/pfSense-repo-next.conf");
pkg_switch_repo("/usr/local/share/pfSense/pkg/repos/pfSense-repo.conf");
}
}
}
Expand Down

0 comments on commit c83b195

Please # to comment.