From aa5203782648dc609fa10a1d9de396363a61b67b Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Thu, 22 Aug 2024 16:15:26 +0200 Subject: [PATCH] Update INSTALL.sh --- INSTALL.sh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/INSTALL.sh b/INSTALL.sh index 291b324b..e52bfd35 100644 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -275,12 +275,13 @@ main() { check_requirements() { if [ -z "$SKIP_REQUIREMENTS" ]; then - # https://github.com/stefanpejcic/openpanel/issues/63 + architecture=$(lscpu | grep Architecture | awk '{print $2}') if [ "$architecture" == "aarch64" ]; then - echo -e "${RED}Error: ARM CPU is not supported!${RESET}" >&2 + # 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 exit 1 fi @@ -1002,15 +1003,6 @@ set_system_cronjob(){ } - -cleanup() { - echo "Cleaning up.." - # https://www.faqforge.com/linux/fixed-ubuntu-apt-get-upgrade-auto-restart-services/ - sed -i 's/$nrconf{restart} = '"'"'a'"'"';/#$nrconf{restart} = '"'"'i'"'"';/g' /etc/needrestart/needrestart.conf -} - - - set_custom_hostname(){ if [ "$SET_HOSTNAME_NOW" = true ]; then # Check if the provided hostname is a valid FQDN