forked from ungleich-public/cdist
		
	Allow __motd to read from stdin
This commit is contained in:
		
					parent
					
						
							
								2069650e74
							
						
					
				
			
			
				commit
				
					
						bfde7a6cfa
					
				
			
		
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -22,6 +22,9 @@
 | 
			
		|||
# Select motd source
 | 
			
		||||
if [ -f "$__object/parameter/source" ]; then
 | 
			
		||||
   source="$(cat "$__object/parameter/source")"
 | 
			
		||||
    if [ "$source" = "-" ]; then
 | 
			
		||||
        source="${__object}/stdin"
 | 
			
		||||
    fi
 | 
			
		||||
else
 | 
			
		||||
   source="$__type/files/motd"
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue