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)
|
centos)
|
||||||
__package tzdata --state present
|
__package tzdata --state present
|
||||||
export require="__package/tzdata"
|
export require="__package/tzdata"
|
||||||
__key_value ZONE \
|
__file /etc/sysconfig/clock \
|
||||||
--file /etc/sysconfig/clock \
|
--owner root --group root --mode 644 \
|
||||||
--delimiter '=' \
|
--state exists
|
||||||
--value "\"$timezone\""
|
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
|
echo "Your operating system ($os) is currently not supported by this type (${__type##*/})." >&2
|
||||||
|
|
Loading…
Reference in a new issue