Commit 72104184 authored by Steven Armstrong's avatar Steven Armstrong

ensure file exists

Signed-off-by: default avatarSteven Armstrong <steven@icarus.ethz.ch>
parent 40610310
......@@ -41,10 +41,14 @@ case "$os" in
centos)
__package tzdata --state present
export require="__package/tzdata"
__key_value ZONE \
--file /etc/sysconfig/clock \
--delimiter '=' \
--value "\"$timezone\""
__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\""
;;
*)
echo "Your operating system ($os) is currently not supported by this type (${__type##*/})." >&2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment