From bf1c3ac376254e4841c4920a52770052767f27ef Mon Sep 17 00:00:00 2001 From: Dennis Camera Date: Sun, 21 Mar 2021 11:11:07 +0100 Subject: [type/__dtnrch_etax_sgnp] Whitelist macosx --- type/__dtnrch_etax_sgnp/manifest | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'type') diff --git a/type/__dtnrch_etax_sgnp/manifest b/type/__dtnrch_etax_sgnp/manifest index 1d273f5..dd0b092 100755 --- a/type/__dtnrch_etax_sgnp/manifest +++ b/type/__dtnrch_etax_sgnp/manifest @@ -81,11 +81,19 @@ in (debian|devuan|ubuntu) download_dir="/var/cache/cdist/${__type##*/}" + __directory "${download_dir}" --state present \ + --owner 0 --group 0 --mode 0755 --parents + ;; + (macosx) + download_dir="/var/tmp/cdist/${__type##*/}" + __directory "${download_dir}" --state present \ --owner 0 --group 0 --mode 0755 --parents ;; (*) - # TODO: error message + : "${__type:?}" # make shellcheck happy + echo "Your operating system (${os}) is currently not supported by this type (${__type##*/})." >&2 + echo "Please contribute an implementation for it if you can." >&2 exit 1 ;; esac -- cgit v1.2.3