|
|
@ -27,13 +27,18 @@ os=$(cat "$__global/explorer/os") |
|
|
|
|
|
|
|
|
|
|
|
case "$os" in |
|
|
|
case "$os" in |
|
|
|
archlinux|debian|ubuntu) |
|
|
|
archlinux|debian|ubuntu) |
|
|
|
__package tzdata --state present |
|
|
|
package=tzdata |
|
|
|
require="__package/tzdata" __link /etc/localtime \ |
|
|
|
;; |
|
|
|
--source "/usr/share/zoneinfo/${timezone}" \ |
|
|
|
suse) |
|
|
|
--type symbolic |
|
|
|
package=timezone |
|
|
|
;; |
|
|
|
;; |
|
|
|
*) |
|
|
|
*) |
|
|
|
echo "Unsupported OS $os" >&2 |
|
|
|
echo "Unsupported OS $os" >&2 |
|
|
|
exit 1 |
|
|
|
exit 1 |
|
|
|
;; |
|
|
|
;; |
|
|
|
esac |
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__package "$package" --state present |
|
|
|
|
|
|
|
require="__package/$package" __link /etc/localtime \ |
|
|
|
|
|
|
|
--source "/usr/share/zoneinfo/${timezone}" \ |
|
|
|
|
|
|
|
--type symbolic |
|
|
|