Skip to content

Commit

Permalink
Add ability to configure uninstall phase from hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Dec 8, 2024
1 parent ae3cf4c commit 84d1104
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion virtualmin-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,11 @@ uninstall() {
echo "Virtualmin uninstallation complete."
}

printf "${YELLOW}${NORMAL} Phase ${YELLOW}1${NORMAL} of ${GREEN}1${NORMAL}: Uninstall\\n"
phase_number=${phase_number:-1}
phases_total=${phases_total:-1}
uninstall_phase_description=${uninstall_phase_description:-"Uninstall"}
echo
phase "$uninstall_phase_description" "$phase_number"
run_ok "uninstall_packages" "Uninstalling Virtualmin $vm_version and all stack packages"
run_ok "uninstall_repos" "Uninstalling Virtualmin $vm_version release package"
}
Expand Down

0 comments on commit 84d1104

Please # to comment.