ensure no conf/conf is created (ln -s src dst/conf createst dst/conf/src if conf exists as a dir)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								508ecacb85
							
						
					
				
			
			
				commit
				
					
						581727e1bf
					
				
			
		
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -42,6 +42,9 @@ echo "cdist $__cdist_version: Configuring $__cdist_target_host"
 | 
			
		|||
# Init base
 | 
			
		||||
mkdir -p "$__cdist_local_base_dir"
 | 
			
		||||
 | 
			
		||||
# Ensure there is no old link, otherwise the new link is created below the old
 | 
			
		||||
rm -f "$__cdist_local_base_dir/$__cdist_name_conf_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