From 62f8296800f8afd9b09d16c0939779d67a61cd94 Mon Sep 17 00:00:00 2001 From: ArchemedIan <105951210+ArchemedIan@users.noreply.github.com> Date: Sun, 3 Sep 2023 11:17:57 -0400 Subject: [PATCH] lil cleanup --- ct/create_lxc.sh | 1 + misc/build.func | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index 78807e99..c82e220f 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -143,6 +143,7 @@ msg_ok "Using ${BL}$CONTAINER_STORAGE${CL} ${GN}for Container Storage." if [ "$arm64ct" = "yes" ]; then msg_info "Downloading And Building LXC Template for Arm64 $PCT_OSTYPE $PCT_OSVERSION" + msg_ok "Downloading And Building LXC Template for Arm64 $PCT_OSTYPE $PCT_OSVERSION..." sudo pvesm status | grep ctgrabtmp >/dev/null 2>&1&& pvesm remove ctgrabtmp >/dev/null 2>&1 pvesm add dir ctgrabtmp -content vztmpl -path /tmp/ctgrabtmp>/dev/null 2>&1 diff --git a/misc/build.func b/misc/build.func index c0fd8350..ac285e48 100644 --- a/misc/build.func +++ b/misc/build.func @@ -69,14 +69,15 @@ pve_check() { # This function checks the system architecture and exits if it's not "amd64". arch_check() { if [ "$(dpkg --print-architecture)" != "amd64" ]; then - #echo -e "\n ${CROSS} Expiramental arm64 support enabled \n" - msg_info "Experimental Arm64 Support Enabled" - sleep 3 - msg_ok "Experimental Arm64 Support Enabled" - #echo -e "Exiting..." - sleep 2 - #exit - arm64ct="yes" + if [ "$(dpkg --print-architecture)" = "arm64" ]; then + msg_info "Experimental Arm64 Support Enabled" + sleep 2 + arm64ct="yes" + msg_ok "Experimental Arm64 Support Enabled" + else + echo -e "\n ${CROSS} No support for $(dpkg --print-architecture) \n" + exit 1 + fi fi }