Skip to content

Commit

Permalink
Fix grade_b_ system function (#99)
Browse files Browse the repository at this point in the history
* Fix grade_b_system function

* Another rev bump
  • Loading branch information
swelljoe authored Nov 26, 2023
1 parent 522a09a commit a20ab08
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions virtualmin-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# License and version
SERIAL=GPL
KEY=GPL
VER=7.3.2
VER=7.3.3
vm_version=7

# Server
Expand Down Expand Up @@ -358,10 +358,10 @@ log_fatal() {
grade_b_system() {
case "$os_type" in
rhel | centos | rocky | almalinux | debian | ubuntu)
return 0
return 1
;;
esac
return 1
return 0
}

if grade_b_system && [ "$unstable" != 'unstable' ]; then
Expand Down Expand Up @@ -701,8 +701,7 @@ EOF
fi
}
if [ "$skipyesno" -ne 1 ] && [ -z "$setup_only" ]; then
grade_b_system
if [ $? -eq 1 ]; then
if grade_b_system; then
os_unstable_pre_check
fi
preconfigured_system_msg
Expand Down

0 comments on commit a20ab08

Please sign in to comment.