testing alpine 3.20

This commit is contained in:
Sam Heinz
2024-06-30 23:04:45 +10:00
parent 186c34b47a
commit 6bc598ba0f
3 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ var_disk="2"
var_cpu="1" var_cpu="1"
var_ram="1024" var_ram="1024"
var_os="alpine" var_os="alpine"
var_version="3.19" var_version="3.20"
variables variables
color color
catch_errors catch_errors
+5 -4
View File
@@ -158,7 +158,7 @@ if [ $PCT_OSTYPE = debian ]; then
TEMPLATE_VARIENT=bookworm TEMPLATE_VARIENT=bookworm
fi fi
elif [ $PCT_OSTYPE = alpine ]; then elif [ $PCT_OSTYPE = alpine ]; then
TEMPLATE_VARIENT=3.18 TEMPLATE_VARIENT=3.20
else else
if [ $PCT_OSVERSION = 20.04 ]; then if [ $PCT_OSVERSION = 20.04 ]; then
TEMPLATE_VARIENT=focal TEMPLATE_VARIENT=focal
@@ -190,10 +190,11 @@ else
pveam update >/dev/null pveam update >/dev/null
msg_ok "Updated LXC Template List" msg_ok "Updated LXC Template List"
if [ $PCT_OSTYPE = debian ]; then if [ $PCT_OSTYPE = debian ]; then
PCT_OSTYPE=ubuntu msg_error "Debian unsupported with this download method. Exiting."
TEMPLATE_VARIENT=jammy elif [ $PCT_OSTYPE = alpine]; then
msg_error "Debian unsupported with this download method. Using Ubuntu 22.04." $TEMPLATE_VARIENT = 3.18
fi fi
TEMPLATE="$(pveam available | grep -E "arm64.*$PCT_OSTYPE-$TEMPLATE_VARIENT" | sed 's/arm64[[:space:]]*//')" TEMPLATE="$(pveam available | grep -E "arm64.*$PCT_OSTYPE-$TEMPLATE_VARIENT" | sed 's/arm64[[:space:]]*//')"
# Download LXC template if needed # Download LXC template if needed
+2 -2
View File
@@ -619,8 +619,8 @@ EOF
pct exec "$CTID" -- /bin/sh -c 'cat <<EOF >/etc/apk/repositories pct exec "$CTID" -- /bin/sh -c 'cat <<EOF >/etc/apk/repositories
#http://dl-cdn.alpinelinux.org/alpine/latest-stable/main #http://dl-cdn.alpinelinux.org/alpine/latest-stable/main
#http://dl-cdn.alpinelinux.org/alpine/latest-stable/community #http://dl-cdn.alpinelinux.org/alpine/latest-stable/community
http://dl-cdn.alpinelinux.org/alpine/v3.19/main http://dl-cdn.alpinelinux.org/alpine/v3.20/main
http://dl-cdn.alpinelinux.org/alpine/v3.19/community http://dl-cdn.alpinelinux.org/alpine/v3.20/community
EOF' EOF'
pct exec "$CTID" -- ash -c "apk add bash >/dev/null" pct exec "$CTID" -- ash -c "apk add bash >/dev/null"
fi fi