forked from ungleich-public/cdist
		
	ensure file exists
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								4061031035
							
						
					
				
			
			
				commit
				
					
						72104184b5
					
				
			
		
					 1 changed files with 8 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -41,10 +41,14 @@ case "$os" in
 | 
			
		|||
    centos)
 | 
			
		||||
        __package tzdata --state present
 | 
			
		||||
        export require="__package/tzdata"
 | 
			
		||||
        __key_value ZONE \
 | 
			
		||||
            --file /etc/sysconfig/clock \
 | 
			
		||||
            --delimiter '=' \
 | 
			
		||||
            --value "\"$timezone\""
 | 
			
		||||
        __file /etc/sysconfig/clock \
 | 
			
		||||
            --owner root --group root --mode 644 \
 | 
			
		||||
            --state exists
 | 
			
		||||
        require="__file/etc/sysconfig/clock" \
 | 
			
		||||
            ___key_value ZONE \
 | 
			
		||||
                --file /etc/sysconfig/clock \
 | 
			
		||||
                --delimiter '=' \
 | 
			
		||||
                --value "\"$timezone\""
 | 
			
		||||
    ;;
 | 
			
		||||
    *)
 | 
			
		||||
        echo "Your operating system ($os) is currently not supported by this type (${__type##*/})." >&2
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue