diff options
| author | Dennis Camera <cdist@dtnr.ch> | 2021-02-12 18:15:44 +0100 |
|---|---|---|
| committer | Dennis Camera <cdist@dtnr.ch> | 2021-03-14 18:14:29 +0100 |
| commit | 7cb353eb999d16f348d4db232b274883f9650839 (patch) | |
| tree | e358510d78904a9aa81a9cac338291e617fa237c | |
| parent | 9493118337f8f54a93a761446daa6509c7fe1a2b (diff) | |
| download | __dtnrch_egov-7cb353eb999d16f348d4db232b274883f9650839.tar.gz __dtnrch_egov-7cb353eb999d16f348d4db232b274883f9650839.zip | |
[type/__dtnrch_install4j] Remove download code
| -rwxr-xr-x | type/__dtnrch_install4j/gencode-remote | 17 | ||||
| -rw-r--r-- | type/__dtnrch_install4j/man.rst | 2 | ||||
| -rwxr-xr-x | type/__dtnrch_install4j/manifest | 34 |
3 files changed, 3 insertions, 50 deletions
diff --git a/type/__dtnrch_install4j/gencode-remote b/type/__dtnrch_install4j/gencode-remote index 1d27097..cd1de72 100755 --- a/type/__dtnrch_install4j/gencode-remote +++ b/type/__dtnrch_install4j/gencode-remote @@ -29,27 +29,16 @@ destination=/${__object_id:?} case ${state_should} in (present) - installer=$(cat "${__object:?}/parameter/installer") - case ${installer} - in - (http://*|https://*) - i4j_script="/var/tmp/cdist/${__type##/}/${installer##*/}" - ;; - (*) - i4j_script=${installer} - ;; - esac + i4j_script=$(cat "${__object:?}/parameter/installer") - i4j_opts=-q - - i4j_opts="${i4j_opts-} -dir '${destination}'" + i4j_opts="-q -dir '${destination}'" if test -f "${__object:?}/parameter/overwrite" then i4j_opts="${i4j_opts-} -overwrite" fi - printf '/bin/sh %s %s\n' "${i4j_script}" "${i4j_opts}" + printf "/bin/sh '%s' %s\\n" "${i4j_script}" "${i4j_opts}" ;; (absent) printf '/bin/sh %s/uninstall -q\n' "${destination}" diff --git a/type/__dtnrch_install4j/man.rst b/type/__dtnrch_install4j/man.rst index 5acf6d1..eefcb5a 100644 --- a/type/__dtnrch_install4j/man.rst +++ b/type/__dtnrch_install4j/man.rst @@ -16,8 +16,6 @@ REQUIRED PARAMETERS installer The location where the installer can be found. - Either a local path or a https?:// URL. - OPTIONAL PARAMETERS ------------------- diff --git a/type/__dtnrch_install4j/manifest b/type/__dtnrch_install4j/manifest deleted file mode 100755 index 244d495..0000000 --- a/type/__dtnrch_install4j/manifest +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -e -# -# 2021 Dennis Camera (cdist at dtnr.ch) -# -# This file is part of cdist. -# -# cdist is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# cdist is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with cdist. If not, see <http://www.gnu.org/licenses/>. -# - -state_should=$(cat "${__object:?}/parameter/state") - -if test "${state_should}" = 'present' -then - case ${installer} - in - (http://*|https://*) - __directory "/var/tmp/cdist/${__type##/}" --parents - __download "/var/tmp/cdist/${__type##/}/${installer##*/}" \ - --url "${installer}" \ - --download remote - ;; - esac -fi |
