mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-10-31 02:49:19 +00:00 
			
		
		
		
	Update debian11_container.sh
This commit is contained in:
		
							parent
							
								
									3ace8c6453
								
							
						
					
					
						commit
						6e5a986147
					
				| @ -13,7 +13,7 @@ done | |||||||
| set -o errexit  #Exit immediately if a pipeline returns a non-zero status | set -o errexit  #Exit immediately if a pipeline returns a non-zero status | ||||||
| set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell | set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell | ||||||
| set -o nounset  #Treat unset variables as an error | set -o nounset  #Treat unset variables as an error | ||||||
| set -o pipefail #Pipe will exit with last non-zero status if applicable | #set -o pipefail #Pipe will exit with last non-zero status if applicable | ||||||
| shopt -s expand_aliases | shopt -s expand_aliases | ||||||
| alias die='EXIT=$? LINE=$LINENO error_exit' | alias die='EXIT=$? LINE=$LINENO error_exit' | ||||||
| trap die ERR | trap die ERR | ||||||
| @ -110,7 +110,7 @@ info "Using '$STORAGE' for storage location." | |||||||
| CTID=$(pvesh get /cluster/nextid) | CTID=$(pvesh get /cluster/nextid) | ||||||
| info "Container ID is $CTID." | info "Container ID is $CTID." | ||||||
| 
 | 
 | ||||||
| # Download latest Debian 10 LXC template | # Download latest Debian 11 LXC template | ||||||
| msg "Updating LXC template list..." | msg "Updating LXC template list..." | ||||||
| pveam update >/dev/null | pveam update >/dev/null | ||||||
| msg "Downloading LXC template..." | msg "Downloading LXC template..." | ||||||
| @ -153,9 +153,9 @@ pct create $CTID $TEMPLATE_STRING -arch $ARCH -features nesting=1 \ | |||||||
|   -ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE >/dev/null |   -ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE >/dev/null | ||||||
| 
 | 
 | ||||||
| # Set container timezone to match host | # Set container timezone to match host | ||||||
| #MOUNT=$(pct mount $CTID | cut -d"'" -f 2) | MOUNT=$(pct mount $CTID | cut -d"'" -f 2) | ||||||
| #ln -fs $(readlink /etc/localtime) ${MOUNT}/etc/localtime | ln -fs $(readlink /etc/localtime) ${MOUNT}/etc/localtime | ||||||
| #pct unmount $CTID && unset MOUNT | pct unmount $CTID && unset MOUNT | ||||||
| 
 | 
 | ||||||
| # Setup container | # Setup container | ||||||
| msg "Starting LXC container..." | msg "Starting LXC container..." | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user