lil cleanup

pull/1756/head
ArchemedIan 2 years ago
parent df2b04daaf
commit 62f8296800
  1. 1
      ct/create_lxc.sh
  2. 17
      misc/build.func

@ -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

@ -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
}

Loading…
Cancel
Save