mirror of
				https://github.com/flynx/proxmox-utils.git
				synced 2025-10-31 04:00:08 +00:00 
			
		
		
		
	cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									72ec3712a9
								
							
						
					
					
						commit
						ed11a6cf1d
					
				| @ -59,6 +59,7 @@ if ! [ -z $BOOTSTRAP_CLEAN ] ; then | ||||
| 		DFL_HOSTS=SKIP | ||||
| 		DFL_DNS=1 | ||||
| 		DFL_FIREWALL=SKIP | ||||
| 
 | ||||
| 	# stage 2: clean -> final | ||||
| 	elif [ -e "$INTERFACES".final ] ; then | ||||
| 		@ mv "$INTERFACES"{.final,.new} | ||||
| @ -68,6 +69,7 @@ if ! [ -z $BOOTSTRAP_CLEAN ] ; then | ||||
| 		DFL_HOSTS=1 | ||||
| 		DFL_DNS=SKIP | ||||
| 		DFL_FIREWALL=1 | ||||
| 
 | ||||
| 	# done | ||||
| 	else | ||||
| 		exit | ||||
| @ -212,14 +214,10 @@ if xreadYes "# Create bridges?" BRIDGES ; then | ||||
| fi | ||||
| 
 | ||||
| 
 | ||||
| echo "# Building config..." | ||||
| # XXX do we need any extra vars here??? | ||||
| echo "# Building config templates..." | ||||
| buildAssets | ||||
| 
 | ||||
| 
 | ||||
| # XXX /etc/hosts??? | ||||
| 
 | ||||
| 
 | ||||
| # /etc/hosts | ||||
| if xreadYes "# Update /etc/hosts?" HOSTS ; then | ||||
| 	@ cp /etc/hosts{,.bak} | ||||
| @ -230,6 +228,7 @@ if xreadYes "# Update /etc/hosts?" HOSTS ; then | ||||
| 	reviewApplyChanges /etc/hosts | ||||
| fi | ||||
| 
 | ||||
| 
 | ||||
| # DNS | ||||
| if xreadYes "# Update DNS?" DNS ; then | ||||
| 	file=/etc/resolv.conf | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user