Update build.func
This commit is contained in:
parent
441a69c85d
commit
da63ff9201
@ -1428,10 +1428,12 @@ EOF'
|
||||
fi
|
||||
msg_ok "Customized LXC Container"
|
||||
|
||||
pct push "$CTID" <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/install/$var_install.sh) /tmp/app-install.sh
|
||||
pct exec "$CTID" -- bash -c 'chmod +x /tmp/app-install.sh'
|
||||
lxc-attach -n "$CTID" -- bash -c '
|
||||
bash -s < /dev/stdin
|
||||
/tmp/app-install.sh
|
||||
echo __EXITCODE__$?
|
||||
' < <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/install/$var_install.sh) | tee /tmp/app_install.log
|
||||
' | tee /tmp/app_install.log
|
||||
|
||||
EXITCODE=$(awk -F__EXITCODE__ '/__EXITCODE__/{print $2}' /tmp/app_install.log | tail -n1)
|
||||
echo "DEBUG: Parsed container exit code: $EXITCODE"
|
||||
|
Loading…
x
Reference in New Issue
Block a user