ensure file exists

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2014-03-19 22:21:07 +01:00
parent 4061031035
commit 72104184b5

View file

@ -41,7 +41,11 @@ case "$os" in
centos)
__package tzdata --state present
export require="__package/tzdata"
__key_value ZONE \
__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\""