Merge branch 'byparr' of https://github.com/luismco/ProxmoxVED into byparr
This commit is contained in:
@@ -2816,6 +2816,7 @@ EOF'
|
||||
install_ssh_keys_into_ct
|
||||
|
||||
# Run application installer
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
# NOTE: We disable error handling here because:
|
||||
# 1. Container errors are caught by error_handler INSIDE container
|
||||
@@ -2862,6 +2863,11 @@ EOF'
|
||||
local build_log_copied=false
|
||||
local install_log_copied=false
|
||||
|
||||
=======
|
||||
if ! lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/luismco/ProxmoxVED/refs/heads/byparr/install/${var_install}.sh)"; then
|
||||
local exit_code=$?
|
||||
# Try to copy installation log from container before exiting
|
||||
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||
if [[ -n "$CTID" && -n "${SESSION_ID:-}" ]]; then
|
||||
# Copy BUILD_LOG (creation log) if it exists
|
||||
if [[ -f "${BUILD_LOG}" ]]; then
|
||||
|
||||
@@ -183,6 +183,7 @@ else
|
||||
echo -n "DIRECT"
|
||||
fi
|
||||
EOF
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
chmod +x /usr/local/bin/apt-proxy-detect.sh
|
||||
fi
|
||||
@@ -192,6 +193,8 @@ EOF
|
||||
msg_ok "Updated Container OS"
|
||||
source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/tools.func)
|
||||
=======
|
||||
=======
|
||||
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||
chmod +x /usr/local/bin/apt-proxy-detect.sh
|
||||
fi
|
||||
$STD apt-get update
|
||||
@@ -199,7 +202,10 @@ EOF
|
||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
msg_ok "Updated Container OS"
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/luismco/ProxmoxVED/refs/heads/byparr/misc/tools.func)
|
||||
<<<<<<< HEAD
|
||||
>>>>>>> 1b856490 (Added install and ct files)
|
||||
=======
|
||||
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||
}
|
||||
|
||||
# ==============================================================================
|
||||
@@ -274,6 +280,7 @@ customize() {
|
||||
ExecStart=
|
||||
ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM
|
||||
EOF
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
systemctl daemon-reload
|
||||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
@@ -288,6 +295,8 @@ EOF
|
||||
chmod 600 /root/.ssh/authorized_keys
|
||||
fi
|
||||
=======
|
||||
=======
|
||||
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||
systemctl daemon-reload
|
||||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
@@ -300,5 +309,8 @@ EOF
|
||||
chmod 700 /root/.ssh
|
||||
chmod 600 /root/.ssh/authorized_keys
|
||||
fi
|
||||
<<<<<<< HEAD
|
||||
>>>>>>> 1b856490 (Added install and ct files)
|
||||
=======
|
||||
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user