diff options
| author | Dennis Camera <skonfig@dtnr.ch> | 2026-08-16 21:07:12 +0200 |
|---|---|---|
| committer | Dennis Camera <skonfig@dtnr.ch> | 2026-08-16 21:12:15 +0200 |
| commit | d98dc4fd35c6f9ffa6fa59b3eadbfb95fcc5d0c8 (patch) | |
| tree | fd236e60497cf6d738912b2a9f463e93b4dc0cca | |
| parent | 498a900dca34459b8baa9f4e8fcb6b2124f0eab3 (diff) | |
| download | __dtnrch_getssl-master.tar.gz __dtnrch_getssl-master.zip | |
| -rwxr-xr-x | type/__dtnrch_getssl_script_henet/manifest | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/type/__dtnrch_getssl_script_henet/manifest b/type/__dtnrch_getssl_script_henet/manifest index b4d825c..95c0a27 100755 --- a/type/__dtnrch_getssl_script_henet/manifest +++ b/type/__dtnrch_getssl_script_henet/manifest @@ -56,6 +56,8 @@ in ;; esac +mkdir "${__object:?}/files" + case ${state_should} in (present) @@ -80,7 +82,6 @@ in export SCR_PASSWORD # Preprocess scripts - mkdir "${__object:?}/files" for script in ${script_names} do # NOTE: Sequences like %%XYZ%% in the script will be replaced with @@ -100,6 +101,10 @@ in done ;; (absent) + for script in ${script_names} + do + :>>"${__object:?}/files/${script}" + done ;; (*) printf 'Invalid --state: %s\n' "${state_should}" >&2 @@ -110,7 +115,7 @@ esac # Manage scripts for script in ${script_names} do - __file "${SCRIPTS_DIR}/${script}" \ + __file "${SCRIPTS_DIR:?}/${script}" \ --state "${state_should}" \ --owner 0 --group 0 --mode 0750 \ --source "${__object:?}/files/${script}" |
