From 34f375032a8a4eb402bd00350421e86876ca3ca7 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Fri, 10 Jan 2025 13:17:44 +0100 Subject: [PATCH] [core]: add support for custom tags (#1384) * Add support for custom tags * Add support for custom tags * Update advanced Tags --- misc/build.func | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/misc/build.func b/misc/build.func index d83c99e8..26937e76 100644 --- a/misc/build.func +++ b/misc/build.func @@ -626,6 +626,17 @@ advanced_settings() { exit_script fi + if ADV_TAGS=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Custom Tags?[If you remove all, there will be no tags!]" 8 58 ${TAGS} --title "Advanced Tags" 3>&1 1>&2 2>&3); then + if [ -n "${ADV_TAGS}" ]; then + ADV_TAGS=${ADV_TAGS:-""} + ADV_TAGS=$(echo "$ADV_TAGS" | tr -d '[:space:]') + TAGS="community-script;${ADV_TAGS}" + fi + echo -e "${NETWORK}${BOLD}${DGN}Tags: ${BGN}$TAGS${CL}" + else + exit_script + fi + if [[ "$PW" == -password* ]]; then if (whiptail --backtitle "Proxmox VE Helper Scripts" --defaultno --title "SSH ACCESS" --yesno "Enable Root SSH Access?" 10 58); then SSH="yes"