forked from ungleich-public/cdist
support FreeBSD in __timezone type
This commit is contained in:
parent
79b16563ed
commit
583aa41bf9
1 changed files with 11 additions and 2 deletions
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
timezone="$__object_id"
|
timezone="$__object_id"
|
||||||
os=$(cat "$__global/explorer/os")
|
os=$(cat "$__global/explorer/os")
|
||||||
|
package=""
|
||||||
|
|
||||||
case "$os" in
|
case "$os" in
|
||||||
archlinux|debian|ubuntu)
|
archlinux|debian|ubuntu)
|
||||||
|
@ -32,13 +33,21 @@ case "$os" in
|
||||||
suse)
|
suse)
|
||||||
package=timezone
|
package=timezone
|
||||||
;;
|
;;
|
||||||
|
freebsd)
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unsupported OS $os" >&2
|
echo "Unsupported OS $os" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
__package "$package" --state present
|
if [ ! -z "$package" ]; then
|
||||||
require="__package/$package" __link /etc/localtime \
|
__package "$package" --state present
|
||||||
|
require="__package/$package" __link /etc/localtime \
|
||||||
|
--source "/usr/share/zoneinfo/${timezone}" \
|
||||||
|
--type symbolic
|
||||||
|
fi
|
||||||
|
|
||||||
|
__link /etc/localtime \
|
||||||
--source "/usr/share/zoneinfo/${timezone}" \
|
--source "/usr/share/zoneinfo/${timezone}" \
|
||||||
--type symbolic
|
--type symbolic
|
||||||
|
|
Loading…
Reference in a new issue