From 17f4df756e4718226c4a62c51ca77f2cd7463d14 Mon Sep 17 00:00:00 2001 From: ArchemedIan <105951210+ArchemedIan@users.noreply.github.com> Date: Sat, 2 Sep 2023 07:31:23 -0400 Subject: [PATCH] Update create_lxc.sh --- ct/create_lxc.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index 70b4e604..96cebad7 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -136,7 +136,14 @@ msg_info "Updating LXC Template List" pveam update >/dev/null msg_ok "Updated LXC Template List" -if [ "$arm64ct" = "yes" ]; then + +if [ "$(dpkg --print-architecture)" = "arm64" ]; then + arm64ct="yes" +else + arm64ct="no" +fi + +if [ "$(dpkg --print-architecture)" = "yes" ]; then msg_info "Arm64 Detected" msg_info "Downloading LXC Template" pvesm add dir ctgrabtmp -content vztmpl -path /tmp/ctgrabtmp