mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Update build.func to display the Proxmox Hostname (#894)
* Update build.func to display the PROXMOX Hostname * Add to Advanced Settings * Changes * Change placement * Remove blank line * Changed Style * Changes * Remove Uppercasing
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							7f86418cf5
						
					
				
				
					commit
					5214c3d531
				
			@@ -8,6 +8,7 @@ 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.
 | 
					  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.
 | 
					  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.
 | 
					  INTEGER='^[0-9]+([.][0-9]+)?$'     # it defines the INTEGER regular expression pattern.
 | 
				
			||||||
 | 
					  PVEHOST_NAME=$(hostname) # gets the Proxmox Hostname and sets it to Uppercase
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# This function sets various color variables using ANSI escape codes for formatting text in the terminal.
 | 
					# This function sets various color variables using ANSI escape codes for formatting text in the terminal.
 | 
				
			||||||
@@ -314,7 +315,6 @@ advanced_settings() {
 | 
				
			|||||||
      fi
 | 
					      fi
 | 
				
			||||||
    done
 | 
					    done
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					 | 
				
			||||||
  # Setting Default Tag for Advanced Settings
 | 
					  # Setting Default Tag for Advanced Settings
 | 
				
			||||||
  TAGS="community-script;"
 | 
					  TAGS="community-script;"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -580,7 +580,7 @@ advanced_settings() {
 | 
				
			|||||||
  else
 | 
					  else
 | 
				
			||||||
    clear
 | 
					    clear
 | 
				
			||||||
    header_info
 | 
					    header_info
 | 
				
			||||||
    echo -e "${ADVANCED}${BOLD}${RD}Using Advanced Settings${CL}"
 | 
					    echo -e "${ADVANCED}${BOLD}${RD}Using Advanced Settings on node $PVEHOST_NAME${CL}"
 | 
				
			||||||
    advanced_settings
 | 
					    advanced_settings
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -614,7 +614,7 @@ install_script() {
 | 
				
			|||||||
    case $CHOICE in
 | 
					    case $CHOICE in
 | 
				
			||||||
      1)
 | 
					      1)
 | 
				
			||||||
        header_info
 | 
					        header_info
 | 
				
			||||||
        echo -e "${DEFAULT}${BOLD}${BL}Using Default Settings${CL}"
 | 
					        echo -e "${DEFAULT}${BOLD}${BL}Using Default Settings on node $PVEHOST_NAME${CL}"
 | 
				
			||||||
        VERB="no"
 | 
					        VERB="no"
 | 
				
			||||||
        base_settings "$VERB"  
 | 
					        base_settings "$VERB"  
 | 
				
			||||||
        echo_default
 | 
					        echo_default
 | 
				
			||||||
@@ -622,7 +622,7 @@ install_script() {
 | 
				
			|||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
      2)
 | 
					      2)
 | 
				
			||||||
        header_info
 | 
					        header_info
 | 
				
			||||||
        echo -e "${DEFAULT}${BOLD}${BL}Using Default Settings (${SEARCH}${BOLD}${BL} Verbose)${CL}"
 | 
					        echo -e "${DEFAULT}${BOLD}${BL}Using Default Settings on node $PVEHOST_NAME(${SEARCH}${BOLD}${BL} Verbose)${CL}"
 | 
				
			||||||
        VERB="yes"
 | 
					        VERB="yes"
 | 
				
			||||||
        base_settings "$VERB"  
 | 
					        base_settings "$VERB"  
 | 
				
			||||||
        echo_default
 | 
					        echo_default
 | 
				
			||||||
@@ -630,7 +630,7 @@ install_script() {
 | 
				
			|||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
      3)
 | 
					      3)
 | 
				
			||||||
        header_info
 | 
					        header_info
 | 
				
			||||||
        echo -e "${ADVANCED}${BOLD}${RD}Using Advanced Settings${CL}"
 | 
					        echo -e "${ADVANCED}${BOLD}${RD}Using Advanced Settings on node $PVEHOST_NAME${CL}"
 | 
				
			||||||
        advanced_settings
 | 
					        advanced_settings
 | 
				
			||||||
        break
 | 
					        break
 | 
				
			||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user