Update create_lxc.sh

This commit is contained in:
ArchemedIan 2023-09-02 07:31:23 -04:00
parent 770cabd25c
commit 17f4df756e
1 changed files with 8 additions and 1 deletions

View File

@ -136,7 +136,14 @@ msg_info "Updating LXC Template List"
pveam update >/dev/null pveam update >/dev/null
msg_ok "Updated LXC Template List" 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 "Arm64 Detected"
msg_info "Downloading LXC Template" msg_info "Downloading LXC Template"
pvesm add dir ctgrabtmp -content vztmpl -path /tmp/ctgrabtmp pvesm add dir ctgrabtmp -content vztmpl -path /tmp/ctgrabtmp