mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-10-30 18:39:10 +00:00 
			
		
		
		
	Update zigbee2mqtt.sh
This commit is contained in:
		
							parent
							
								
									ea29ae8d63
								
							
						
					
					
						commit
						7a135349d5
					
				| @ -30,16 +30,16 @@ ${CL}" | |||||||
| 
 | 
 | ||||||
| header_info | header_info | ||||||
| show_menu(){ | show_menu(){ | ||||||
|     printf "    ${YW} 1)${GN} Privileged ${CL}\n" |     printf "    ${YW} 1)${YW} Privileged ${CL}\n" | ||||||
| #    printf "    ${YW} 2)${RD} Unprivileged ${CL}\n" |     printf "    ${YW} 2)${GN} Unprivileged ${CL}\n" | ||||||
| 
 | 
 | ||||||
|     printf "Please choose a Install Method and hit enter or ${RD}x${CL} to exit." |     printf "Please choose a Install Method and hit enter or ${RD}x${CL} to exit." | ||||||
|     read opt |     read opt | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| option_picked(){ | option_picked(){ | ||||||
|     message=${@:-"${CL}Error: No message passed"} |     message1=${@:-"${CL}Error: No message passed"} | ||||||
|     printf " ${YW}${message}${CL}\n" |     printf " ${YW}${message1}${CL}\n" | ||||||
| } | } | ||||||
| show_menu | show_menu | ||||||
| while [ $opt != '' ] | while [ $opt != '' ] | ||||||
| @ -72,6 +72,50 @@ while [ $opt != '' ] | |||||||
|       esac |       esac | ||||||
|     fi |     fi | ||||||
|   done |   done | ||||||
|  | show_menu2(){ | ||||||
|  |     printf "    ${YW} 1)${GN} Use Automatic Login ${CL}\n" | ||||||
|  |     printf "    ${YW} 2)${GN} Use Password (changeme) ${CL}\n" | ||||||
|  | 
 | ||||||
|  |     printf "Please choose a Password Type and hit enter or ${RD}x${CL} to exit." | ||||||
|  |     read opt | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | option_picked(){ | ||||||
|  |     message=${@:-"${CL}Error: No message passed"} | ||||||
|  |     printf " ${YW}${message1}${CL}\n" | ||||||
|  |     printf " ${YW}${message}${CL}\n" | ||||||
|  | } | ||||||
|  | show_menu2 | ||||||
|  | while [ $opt != '' ] | ||||||
|  |     do | ||||||
|  |     if [ $opt = '' ]; then | ||||||
|  |       exit; | ||||||
|  |     else | ||||||
|  |       case $opt in | ||||||
|  |         1) clear; | ||||||
|  |             header_info; | ||||||
|  |             option_picked "Using Automatic Login"; | ||||||
|  |             PW=" " | ||||||
|  |             break; | ||||||
|  |         ;; | ||||||
|  |         2) clear; | ||||||
|  |             header_info; | ||||||
|  |             option_picked "Using Password (changeme)"; | ||||||
|  |             PW="-password changeme" | ||||||
|  |             break; | ||||||
|  |         ;; | ||||||
|  | 
 | ||||||
|  |         x)exit; | ||||||
|  |         ;; | ||||||
|  |         \n)exit; | ||||||
|  |         ;; | ||||||
|  |         *)clear; | ||||||
|  |             option_picked "Please choose a Password Type from the menu"; | ||||||
|  |             show_menu2; | ||||||
|  |         ;; | ||||||
|  |       esac | ||||||
|  |     fi | ||||||
|  |   done | ||||||
| 
 | 
 | ||||||
| set -o errexit | set -o errexit | ||||||
| set -o errtrace | set -o errtrace | ||||||
| @ -140,6 +184,7 @@ export PCT_OPTIONS=" | |||||||
|   -cores 2 |   -cores 2 | ||||||
|   -memory 1024 |   -memory 1024 | ||||||
|   -unprivileged ${IM} |   -unprivileged ${IM} | ||||||
|  |   ${PW} | ||||||
| " | " | ||||||
| bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit | bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user