Skip to content

Commit dcf36dd

Browse files
committed
Fix to correctly remove repositories on uninstall
1 parent 3398fc5 commit dcf36dd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

virtualmin-install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ goto_tmpdir() {
611611
}
612612
goto_tmpdir
613613

614+
# Function to check for HTTP client presence
614615
pre_check_http_client() {
615616
# Check for wget or curl or fetch
616617
printf "Checking for HTTP client .." >>"$log"
@@ -749,7 +750,7 @@ write_virtualmin_branch() {
749750
# matching Webmin repositories in sync.
750751
manage_virtualmin_branch_repos() {
751752
del_cmd="" found_type="" reinstalling=0
752-
found_both=0 found_unstable=0 found_prerelease=0
753+
found_both=0 found_unstable=0 found_prerelease=0 found_stable=0
753754

754755
# Set paths based on package type
755756
case "$package_type" in
@@ -1091,7 +1092,7 @@ uninstall() {
10911092
phase "$uninstall_phase_description" "$phase_number"
10921093
run_ok "uninstall_packages" "Uninstalling Virtualmin $vm_version and all stack packages"
10931094
run_ok "uninstall_repos" "Uninstalling Virtualmin $vm_version configuration and license"
1094-
manage_virtualmin_branch_repos
1095+
run_ok "remove_virtualmin_release" "Removing Virtualmin $vm_version repository configuration"
10951096
}
10961097

10971098
# Disable CD-ROM repos on Debian-based systems

0 commit comments

Comments
 (0)