+cleanup
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								7d6b1b5236
							
						
					
				
			
			
				commit
				
					
						75bff0b13f
					
				
			
		
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -27,11 +27,13 @@ __cdist_init_deploy()
 | 
			
		|||
 | 
			
		||||
   # Ensure there is no old stuff, neither local nor remote
 | 
			
		||||
   rm -rf "$__cdist_local_base_dir"
 | 
			
		||||
   ssh "${__cdist_remote_user}@$1" "rm -rf ${__cdist_remote_base_dir}"
 | 
			
		||||
   ssh "${__cdist_remote_user}@${__cdist_target_host}" \
 | 
			
		||||
      "rm -rf ${__cdist_remote_base_dir}"
 | 
			
		||||
 | 
			
		||||
   # Init base
 | 
			
		||||
   mkdir -p "$__cdist_local_base_dir"
 | 
			
		||||
   ssh "${__cdist_remote_user}@$1" "mkdir -p ${__cdist_remote_base_dir}"
 | 
			
		||||
   ssh "${__cdist_remote_user}@${__cdist_target_host}" \
 | 
			
		||||
      "mkdir -p ${__cdist_remote_base_dir}"
 | 
			
		||||
 | 
			
		||||
   # Link configuration source directory - consistent with remote
 | 
			
		||||
   ln -sf "$__cdist_conf_dir" "$__cdist_local_base_dir/$__cdist_name_conf_dir"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue