Check for Ubuntu

This commit is contained in:
Mike Reeves
2023-01-24 10:07:32 -05:00
parent f077b5c96d
commit 2da30f42d4
3 changed files with 43 additions and 0 deletions

View File

@@ -2303,6 +2303,17 @@ so_add_user() {
fi
}
ubuntu_check() {
if [[ $OS == "ubuntu" ]]; then
if [[ $waitforstate ]]; then
whiptail_ubuntu_notsupported
exit 1
else
whiptail_ubuntu_warning
fi
fi
}
update_sudoers_for_testing() {
if [ -n "$TESTING" ]; then
info "Ensuring $INSTALLUSERNAME has password-less sudo access for automated testing purposes."