forked from ungleich-public/cdist
		
	suse support for __timezone
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								004e90e9b9
							
						
					
				
			
			
				commit
				
					
						17504975a6
					
				
			
		
					 1 changed files with 9 additions and 4 deletions
				
			
		|  | @ -27,13 +27,18 @@ os=$(cat "$__global/explorer/os") | |||
|          | ||||
| case "$os" in | ||||
|     archlinux|debian|ubuntu) | ||||
|         __package tzdata --state present | ||||
|         require="__package/tzdata" __link /etc/localtime    \ | ||||
|             --source "/usr/share/zoneinfo/${timezone}"      \ | ||||
|             --type symbolic | ||||
|         package=tzdata | ||||
|     ;; | ||||
|     suse) | ||||
|         package=timezone | ||||
|     ;; | ||||
|     *) | ||||
|         echo "Unsupported OS $os" >&2 | ||||
|         exit 1 | ||||
|     ;; | ||||
| esac | ||||
| 
 | ||||
| __package "$package" --state present | ||||
| require="__package/$package" __link /etc/localtime    \ | ||||
|     --source "/usr/share/zoneinfo/${timezone}"      \ | ||||
|     --type symbolic | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue