forked from ungleich-public/cdist
		
	enhance and fix __issue
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								6800bbff10
							
						
					
				
			
			
				commit
				
					
						04a07cfaf6
					
				
			
		
					 2 changed files with 17 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -20,15 +20,21 @@
 | 
			
		|||
#
 | 
			
		||||
 | 
			
		||||
destination=/etc/issue
 | 
			
		||||
source="$(cat "out/explorer/os")"
 | 
			
		||||
 | 
			
		||||
case "$os" in
 | 
			
		||||
   archlinux|redhat)
 | 
			
		||||
      source="$__type/files/$os"
 | 
			
		||||
   ;;
 | 
			
		||||
   *)
 | 
			
		||||
      source="$__type/files/default"
 | 
			
		||||
   ;;
 | 
			
		||||
esac
 | 
			
		||||
os="$(cat "$__global/explorer/os")"
 | 
			
		||||
 | 
			
		||||
if [ -f "$__object/parameter/source" ]; then
 | 
			
		||||
   source="$(cat "$__object/parameter/source")"
 | 
			
		||||
   echo using $source
 | 
			
		||||
else
 | 
			
		||||
   case "$os" in
 | 
			
		||||
      archlinux|redhat)
 | 
			
		||||
         source="$__type/files/$os"
 | 
			
		||||
      ;;
 | 
			
		||||
      *)
 | 
			
		||||
         source="$__type/files/default"
 | 
			
		||||
      ;;
 | 
			
		||||
   esac
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
__file "$destination" --source "$source"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,8 @@
 | 
			
		|||
	* Document cdist-type-build-emulation
 | 
			
		||||
	* Document cdist-type-emulator
 | 
			
		||||
	* Document cdist-remote-explorer-run
 | 
			
		||||
	* Fix dependencies in cdist-code-run
 | 
			
		||||
	* Add --source to __issue and fix os check
 | 
			
		||||
 | 
			
		||||
1.3.0: 2011-03-20
 | 
			
		||||
	* Add support for local and remote code generation and execution
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue