mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update INSTALL.sh
This commit is contained in:
parent
e49cd51efd
commit
faf23875f8
23
INSTALL.sh
23
INSTALL.sh
@ -274,6 +274,15 @@ setup_progress_bar_script(){
|
|||||||
|
|
||||||
display_what_will_be_installed(){
|
display_what_will_be_installed(){
|
||||||
echo -e "[ OK ] DETECTED OPERATING SYSTEM: ${GREEN} ${NAME^^} $VERSION_ID ${RESET}"
|
echo -e "[ OK ] DETECTED OPERATING SYSTEM: ${GREEN} ${NAME^^} $VERSION_ID ${RESET}"
|
||||||
|
if [ -z "$SKIP_REQUIREMENTS" ]; then
|
||||||
|
if [ "$architecture" == "x86_64" ]; then
|
||||||
|
echo -e "[ OK ] CPU ARCHITECTURE: ${GREEN} ${architecture^^} ${RESET}"
|
||||||
|
elif [ "$architecture" == "aarch64" ]; then
|
||||||
|
echo -e "[PASS] CPU ARCHITECTURE: ${YELLOW} ${architecture^^} ${RESET}"
|
||||||
|
else
|
||||||
|
echo -e "[PASS] CPU ARCHITECTURE: ${YELLOW} ${architecture^^} ${RESET}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
echo -e "[ OK ] PACKAGE MANAGEMENT SYSTEM: ${GREEN} ${PACKAGE_MANAGER^^} ${RESET}"
|
echo -e "[ OK ] PACKAGE MANAGEMENT SYSTEM: ${GREEN} ${PACKAGE_MANAGER^^} ${RESET}"
|
||||||
echo -e "[ OK ] INSTALLED PYTHON VERSION: ${GREEN} ${current_python_version} ${RESET}"
|
echo -e "[ OK ] INSTALLED PYTHON VERSION: ${GREEN} ${current_python_version} ${RESET}"
|
||||||
if [ "$FS_TYPE" = "xfs" ]; then
|
if [ "$FS_TYPE" = "xfs" ]; then
|
||||||
@ -392,8 +401,13 @@ check_requirements() {
|
|||||||
|
|
||||||
if [ "$architecture" == "aarch64" ]; then
|
if [ "$architecture" == "aarch64" ]; then
|
||||||
# https://github.com/stefanpejcic/openpanel/issues/63
|
# https://github.com/stefanpejcic/openpanel/issues/63
|
||||||
echo -e "${RED}Error: ARM CPU is not supported! Feature request: https://github.com/stefanpejcic/openpanel/issues/63 ${RESET}" >&2
|
echo -e "${YELLOW}WARNING: ARM CPU architecture is not yet fully supported! Feature request: https://github.com/stefanpejcic/openpanel/issues/63 ${RESET}"
|
||||||
exit 1
|
echo -e "- user panel and all other services such as Nginx, DNS, MySQL, CSF, etc. will work as usual."
|
||||||
|
echo -e "- ${RED}admin panel will not work${RESET}, meaning that you will have to perform all actions from the terminal: https://dev.openpanel.com/cli/"
|
||||||
|
echo -e ""
|
||||||
|
echo -e "To have the OpenAdmin panel, please use a server with ${GREEN}x86_64${RESET} CPU architecture instead."
|
||||||
|
echo -e ""
|
||||||
|
#exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check if the current user is root
|
# check if the current user is root
|
||||||
@ -1729,13 +1743,16 @@ install_openadmin(){
|
|||||||
service watcher start > /dev/null 2>&1
|
service watcher start > /dev/null 2>&1
|
||||||
systemctl enable watcher > /dev/null 2>&1
|
systemctl enable watcher > /dev/null 2>&1
|
||||||
|
|
||||||
|
if [ "$architecture" == "x86_64" ]; then
|
||||||
echo "Testing if OpenAdmin service is available on default port '2087':"
|
echo "Testing if OpenAdmin service is available on default port '2087':"
|
||||||
if ss -tuln | grep ':2087' >/dev/null; then
|
if ss -tuln | grep ':2087' >/dev/null; then
|
||||||
echo -e "[${GREEN} OK ${RESET}] OpenAdmin service is running."
|
echo -e "[${GREEN} OK ${RESET}] OpenAdmin service is running."
|
||||||
else
|
else
|
||||||
radovan 1 "OpenAdmin service is NOT listening on port 2087."
|
radovan 1 "OpenAdmin service is NOT listening on port 2087."
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "WARNING: OpenAdmin might not work on your CPU architecture! please use x86_64 instead."
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user