[refactor][fix] Update reinstall logic

* Only set reinstall flag if new accept_changes file exists
* Instead of stopping highstate from running, kill all salt processes and remove their configs
* Make end of non-reinstall logs clear in cases where user cancels (and log not rotated)
This commit is contained in:
William Wernert
2020-11-18 12:29:54 -05:00
parent 8a4defcffa
commit ad74b4b3e0
4 changed files with 22 additions and 24 deletions

View File

@@ -168,8 +168,12 @@ whiptail_cancel() {
echo "/root/installtmp removed";
} >> $setup_log 2>&1
fi
exit
echo "----------" >> "$setup_log" 2>&1
info "User cancelled setup, no changes made."
echo "----------" >> "$setup_log" 2>&1
exit
}
whiptail_check_exitstatus() {