[core]: add support for custom tags (#1384)

* Add support for custom tags

* Add support for custom tags

* Update advanced Tags
This commit is contained in:
Michel Roegl-Brunner 2025-01-10 13:17:44 +01:00 committed by GitHub
parent 0c44d2d23c
commit 34f375032a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"