|
|
|
@ -400,9 +400,9 @@ build_container() { |
|
|
|
|
TEMP_DIR=$(mktemp -d) |
|
|
|
|
pushd $TEMP_DIR >/dev/null |
|
|
|
|
if [ "$var_os" == "alpine" ]; then |
|
|
|
|
export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/nicedevil007/Proxmox/main/misc/alpine-install.func)" |
|
|
|
|
export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/alpine-install.func)" |
|
|
|
|
else |
|
|
|
|
export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/nicedevil007/Proxmox/main/misc/install.func)" |
|
|
|
|
export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/install.func)" |
|
|
|
|
fi |
|
|
|
|
export tz="$timezone" |
|
|
|
|
if [[ "$APP" == "Docker" || "$APP" == "Umbrel" || "$APP" == "CasaOS" || "$APP" == "Home Assistant" ]]; then |
|
|
|
@ -428,7 +428,7 @@ build_container() { |
|
|
|
|
-unprivileged $CT_TYPE |
|
|
|
|
$PW |
|
|
|
|
" |
|
|
|
|
bash -c "$(wget -qLO - https://raw.githubusercontent.com/nicedevil007/Proxmox/main/ct/create_lxc.sh)" || exit |
|
|
|
|
bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit |
|
|
|
|
|
|
|
|
|
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf |
|
|
|
|
if [ "$CT_TYPE" == "0" ]; then |
|
|
|
@ -469,13 +469,13 @@ EOF |
|
|
|
|
sleep 2 |
|
|
|
|
pct exec "$CTID" -- ash -c "apk add bash >/dev/null" |
|
|
|
|
fi |
|
|
|
|
lxc-attach -n "$CTID" -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/nicedevil007/Proxmox/main/install/$var_install.sh)" || exit |
|
|
|
|
lxc-attach -n "$CTID" -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
description() { |
|
|
|
|
IP=$(pct exec "$CTID" ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1) |
|
|
|
|
pct set "$CTID" -description "# ${APP} LXC |
|
|
|
|
### https://nicedevil007.github.io/Proxmox/ |
|
|
|
|
### https://tteck.github.io/Proxmox/ |
|
|
|
|
<a href='https://ko-fi.com/D1D7EP4GF'><img src='https://img.shields.io/badge/☕-Buy me a coffee-red' /></a>" |
|
|
|
|
} |
|
|
|
|