Fix motd_ssh timing in description() - remove late post-install call

This commit is contained in:
CanbiZ 2025-11-17 17:22:54 +01:00
parent 5ed03e1c62
commit 686e1988b3
2 changed files with 105 additions and 116 deletions

View File

@ -3702,17 +3702,6 @@ create_lxc_container() {
# - Posts final "done" status to API telemetry # - Posts final "done" status to API telemetry
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
description() { description() {
# Dev mode: Setup MOTD/SSH on successful installation
if [[ "${DEV_MODE_MOTD:-false}" == "true" ]]; then
msg_dev "Setting up MOTD and SSH for debugging access"
if pct exec "$CTID" -- bash -c "
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/install.func)
declare -f motd_ssh >/dev/null 2>&1 && motd_ssh || true
" >/dev/null 2>&1; then
msg_dev "MOTD/SSH configured successfully"
fi
fi
IP=$(pct exec "$CTID" ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1) IP=$(pct exec "$CTID" ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
# Generate LXC Description # Generate LXC Description