diff --git a/misc/build.func b/misc/build.func index 38587512..e1661b0f 100644 --- a/misc/build.func +++ b/misc/build.func @@ -1,6 +1,7 @@ # Copyright (c) 2021-2025 tteck # Author: tteck (tteckster) # Co-Author: MickLesk +# Co-Author: michelroegl-brunner # License: MIT # https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE @@ -9,6 +10,7 @@ variables() { var_install="${NSAPP}-install" # sets the var_install variable by appending "-install" to the value of NSAPP. INTEGER='^[0-9]+([.][0-9]+)?$' # it defines the INTEGER regular expression pattern. PVEHOST_NAME=$(hostname) # gets the Proxmox Hostname and sets it to Uppercase + DIAGNOSTICS="yes" # sets the DIAGNOSTICS variable to "yes", used for the API call. } # This function sets various color variables using ANSI escape codes for formatting text in the terminal. @@ -789,6 +791,37 @@ advanced_settings() { fi } +post_to_api() { + local API_URL="http://api.community-scripts.org/upload" + + + JSON_PAYLOAD=$(cat </dev/null