mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-10-31 02:49:19 +00:00 
			
		
		
		
	Update create_lxc.sh
This commit is contained in:
		
							parent
							
								
									735822d6da
								
							
						
					
					
						commit
						9e0fb19df2
					
				| @ -127,8 +127,8 @@ DEFAULT_PCT_OPTIONS=( | |||||||
| PCT_OPTIONS=( ${PCT_OPTIONS[@]:-${DEFAULT_PCT_OPTIONS[@]}} ) | PCT_OPTIONS=( ${PCT_OPTIONS[@]:-${DEFAULT_PCT_OPTIONS[@]}} ) | ||||||
| [[ " ${PCT_OPTIONS[@]} " =~ " -rootfs " ]] || PCT_OPTIONS+=( -rootfs $CONTAINER_STORAGE:${PCT_DISK_SIZE:-8} ) | [[ " ${PCT_OPTIONS[@]} " =~ " -rootfs " ]] || PCT_OPTIONS+=( -rootfs $CONTAINER_STORAGE:${PCT_DISK_SIZE:-8} ) | ||||||
| 
 | 
 | ||||||
| echo -en "${GN} Creating LXC Container... " | msg_info "Creating LXC Container" | ||||||
| pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/null || | pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/null || | ||||||
|   die "A problem occured while trying to create container." |   die "A problem occured while trying to create container." | ||||||
| echo -e "${CM}${CL} \r" | msg_ok "Creating LXC Container" | ||||||
| info "LXC Container ${BL}$CTID${CL} was successfully created." | info "LXC Container ${BL}$CTID${CL} was successfully created." | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user