mirror of
				https://github.com/flynx/proxmox-utils.git
				synced 2025-10-31 04:00:08 +00:00 
			
		
		
		
	Merge branch 'master' of github.com:flynx/proxmox-utils
This commit is contained in:
		
						commit
						105b3f4716
					
				
							
								
								
									
										22
									
								
								.pct-helpers
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								.pct-helpers
									
									
									
									
									
								
							| @ -390,6 +390,28 @@ reviewApplyChanges(){ | |||||||
| 
 | 
 | ||||||
| #---------------------------------------------------------------------- | #---------------------------------------------------------------------- | ||||||
| 
 | 
 | ||||||
|  | # | ||||||
|  | #	readCTConfig | ||||||
|  | # | ||||||
|  | # XXX list or load a specific CT config... | ||||||
|  | readCTConfig(){ | ||||||
|  | 	if [ -z $ID ] && ! [ -z $CTHOSTNAME ] ; then | ||||||
|  | 		# XXX select by id... | ||||||
|  | 		true | ||||||
|  | 	elif ! [ -z $ID ] && [ -z $CTHOSTNAME ] ; then | ||||||
|  | 		# XXX select by hostname... | ||||||
|  | 		true | ||||||
|  | 	else | ||||||
|  | 		# XXX list all... | ||||||
|  | 		return | ||||||
|  | 	fi | ||||||
|  | 	local ct_cfg=$ID-$CTHOSTNAME.cfg | ||||||
|  | 	if [ -e $ct_cfg ] ; then | ||||||
|  | 		source "$ct_cfg" | ||||||
|  | 	fi | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| #  | #  | ||||||
| # 	readConfig | # 	readConfig | ||||||
| # | # | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user