This commit is contained in:
CanbiZ
2025-05-20 09:27:11 +02:00
parent 0e626b5028
commit 5f5478b19f
3 changed files with 30 additions and 1 deletions

View File

@@ -4,6 +4,12 @@
# Co-Author: michelroegl-brunner
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
set -Eeuo pipefail
trap '__handle_general_error "${BASH_SOURCE[0]}:${LINENO}"' ERR
trap '__handle_signal_exit' SIGINT SIGTERM
trap '__handle_exit' EXIT
variables() {
NSAPP=$(echo "${APP,,}" | tr -d ' ') # This function sets the NSAPP variable by converting the value of the APP variable to lowercase and removing any spaces.
var_install="${NSAPP}-install" # sets the var_install variable by appending "-install" to the value of NSAPP.
@@ -1075,7 +1081,7 @@ EOF'
pct exec "$CTID" -- bash -c "apt-get update >/dev/null && apt-get install -y sudo curl mc gnupg2 >/dev/null"
fi
msg_ok "Customized LXC Container"
lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/install/$var_install.sh)" $?
run_container_safe "curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/install/$var_install.sh"
}