Compare commits

...

2 Commits

Author SHA1 Message Date
tteckster 79b29951d7
Update alpine-install.func
moved to `build.func`
2024-01-16 22:29:34 -05:00
tteckster 2997b2f911
Update build.func
fixes https://github.com/tteck/Proxmox/issues/2356
2024-01-16 22:24:33 -05:00
2 changed files with 5 additions and 5 deletions

View File

@ -71,10 +71,6 @@ setting_up_container() {
echo -e " 🖧 Check Network Settings"
exit 1
fi
cat <<EOF >/etc/apk/repositories
https://dl-cdn.alpinelinux.org/alpine/latest-stable/main
https://dl-cdn.alpinelinux.org/alpine/latest-stable/community
EOF
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(ip addr show | grep 'inet ' | awk '{print $2}' | cut -d'/' -f1 | tail -n1)${CL}"
}

View File

@ -572,7 +572,11 @@ EOF
pct start "$CTID"
msg_ok "Started LXC Container"
if [ "$var_os" == "alpine" ]; then
sleep 2
sleep 3
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/community
EOF'
pct exec "$CTID" -- ash -c "apk add bash >/dev/null"
fi
lxc-attach -n "$CTID" -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit