File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -426,6 +426,13 @@ if [ -d "/usr/local/hestia" ]; then
426426 check_result 1 " Hestia install detected. Unable to continue"
427427fi
428428
429+ type= $( grep " ^ID=" /etc/os-release | cut -f 2 -d ' =' )
430+ if [ " $type " = " ubuntu" ]; then
431+ check_result 1 " You are running the wrong installer for Ubuntu. Please run hst-install.sh or hst-install-ubuntu.sh instead."
432+ elif [ " $type " != " debian" ]; then
433+ check_result 1 " You are running an unsupported OS."
434+ fi
435+
429436# Clear the screen once launch permissions have been verified
430437clear
431438
Original file line number Diff line number Diff line change @@ -422,6 +422,13 @@ if [ -d "/usr/local/hestia" ]; then
422422 check_result 1 " Hestia install detected. Unable to continue"
423423fi
424424
425+ type= $( grep " ^ID=" /etc/os-release | cut -f 2 -d ' =' )
426+ if [ " $type " = " debian" ]; then
427+ check_result 1 " You are running the wrong installer for Debian. Please run hst-install.sh or hst-install-debian.sh instead."
428+ elif [ " $type " != " ubuntu" ]; then
429+ check_result 1 " You are running an unsupported OS."
430+ fi
431+
425432# Clear the screen once launch permissions have been verified
426433clear
427434
You can’t perform that action at this time.
0 commit comments