diff options
| author | Dennis Camera <cdist@dtnr.ch> | 2021-03-17 13:35:47 +0100 |
|---|---|---|
| committer | Dennis Camera <cdist@dtnr.ch> | 2021-03-17 13:36:44 +0100 |
| commit | fa096972bcb40e22ecfe010f055e2857bc545ff6 (patch) | |
| tree | ca8b5c9a8c142901d796d46b1ebc137ff6ba4dd0 | |
| parent | 3f4c11644e204e1b1c784bac14a36dcb441891a9 (diff) | |
| download | __dtnrch_getssl-fa096972bcb40e22ecfe010f055e2857bc545ff6.tar.gz __dtnrch_getssl-fa096972bcb40e22ecfe010f055e2857bc545ff6.zip | |
[type/__dtnrch_getssl] Fix order when installing getssl
| -rw-r--r-- | type/__dtnrch_getssl/man.rst | 2 | ||||
| -rwxr-xr-x | type/__dtnrch_getssl/manifest | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/type/__dtnrch_getssl/man.rst b/type/__dtnrch_getssl/man.rst index 2414a68..d9ec166 100644 --- a/type/__dtnrch_getssl/man.rst +++ b/type/__dtnrch_getssl/man.rst @@ -42,7 +42,7 @@ EXAMPLES SEE ALSO -------- -None. +- https://github.com/srvrco/getssl.git AUTHORS diff --git a/type/__dtnrch_getssl/manifest b/type/__dtnrch_getssl/manifest index c2a0db4..5532189 100755 --- a/type/__dtnrch_getssl/manifest +++ b/type/__dtnrch_getssl/manifest @@ -76,12 +76,18 @@ $( ) EOF +require="${require-}${require:+ }$(test "${state_should}" != 'absent' || echo __cron/getssl)" \ __staged_file "${DEST}/getssl" --state "${state_should}" \ --owner 0 --mode 0755 \ --source "https://raw.githubusercontent.com/srvrco/getssl/${tag_name}/getssl" \ --cksum "${cksum_should}" +if test "${state_should}" != 'absent' +then + require="__staged_file${DEST}/getssl" +fi + __directory '/etc/getssl' --state "${state_should}" --owner 0 --mode 0750 -__cron 'getssl' --state "${state_should}" --user 0 --hour 1 --minute 0 \ +__cron 'getssl' --state "${state_should}" --user root --hour 1 --minute 0 \ --command 'getssl -a -q -U' |
