mirror of
				https://github.com/flynx/proxmox-utils.git
				synced 2025-10-31 04:00:08 +00:00 
			
		
		
		
	added /etc/hosts handling...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									53aedbb1d8
								
							
						
					
					
						commit
						3efb4f4b31
					
				
							
								
								
									
										10
									
								
								host/make.sh
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								host/make.sh
									
									
									
									
									
								
							| @ -206,6 +206,16 @@ buildAssets | |||||||
| # XXX /etc/hosts??? | # XXX /etc/hosts??? | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | # /etc/hosts | ||||||
|  | if xreadYes "# Update /etc/hosts?" HOSTS ; then | ||||||
|  | 	@ cp /etc/hosts{,.bak} | ||||||
|  | 	@ cp /etc/hosts{,.new} | ||||||
|  | 	@ sed -i \ | ||||||
|  | 		-e 's/^[^#].* \(pve.local.*\)$/'${HOST_ADMIN_IP}'\1/' \ | ||||||
|  | 		/etc/hosts.new | ||||||
|  | 	reviewApplyChanges /etc/hosts | ||||||
|  | fi | ||||||
|  | 
 | ||||||
| # DNS | # DNS | ||||||
| if xreadYes "# Update DNS?" DNS ; then | if xreadYes "# Update DNS?" DNS ; then | ||||||
| 	file=/etc/resolv.conf | 	file=/etc/resolv.conf | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user