Merge pull request #11535 from Security-Onion-Solutions/jertel/auto

avoid rebooting when testing deb installs
This commit is contained in:
Jason Ertel
2023-10-12 16:30:24 -04:00
committed by GitHub

View File

@@ -91,7 +91,7 @@ fi
# if packages are updated and the box isn't rebooted # if packages are updated and the box isn't rebooted
if [[ $is_debian ]]; then if [[ $is_debian ]]; then
update_packages update_packages
if [[ -f "/var/run/reboot-required" ]]; then if [[ -f "/var/run/reboot-required" ]] && [ -z "$test_profile" ]; then
whiptail_debian_reboot_required whiptail_debian_reboot_required
reboot reboot
fi fi