summaryrefslogtreecommitdiffstats
path: root/share/scripts/curl.d/0001-debconf
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-03-02 10:06:40 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-03-02 10:39:04 +0000
commitcebe592fb5eb4c1625cf5dcab1968c27cbc25d3e (patch)
treeb4cc270e4a2c991ba207b2329c74d11412da2403 /share/scripts/curl.d/0001-debconf
parentAdding upstream version 20190222. (diff)
downloadopen-infrastructure-compute-tools-cebe592fb5eb4c1625cf5dcab1968c27cbc25d3e.tar.xz
open-infrastructure-compute-tools-cebe592fb5eb4c1625cf5dcab1968c27cbc25d3e.zip
Adding upstream version 20190301.upstream/20190301
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/scripts/curl.d/0001-debconf')
-rwxr-xr-xshare/scripts/curl.d/0001-debconf54
1 files changed, 0 insertions, 54 deletions
diff --git a/share/scripts/curl.d/0001-debconf b/share/scripts/curl.d/0001-debconf
deleted file mode 100755
index 3f98f74..0000000
--- a/share/scripts/curl.d/0001-debconf
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-
-# Copyright (C) 2014-2019 Daniel Baumann <daniel.baumann@open-infrastructure.net>
-#
-# SPDX-License-Identifier: GPL-3.0+
-#
-# This program 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.
-#
-# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
-
-set -e
-
-DEBCONF_NOWARNINGS="true"
-export DEBCONF_NOWARNINGS
-
-. /usr/share/debconf/confmodule
-
-System ()
-{
- TITLE="$(echo ${SERVER} | awk -F/ '{ print $3 }')"
-
- SYSTEMS="$(for SYSTEM in $(cat ${DEBCONF_TMPDIR}/container-list.txt | cut -d\| -f2 | sed -e 's| |#|g'); do echo -n "$(echo ${SYSTEM} | sed -e 's|#| |g'), "; done | sed -e 's|, $||')"
- SYSTEMS_C="$(for SYSTEM_C in $(cat ${DEBCONF_TMPDIR}/container-list.txt | cut -d\| -f1); do echo -n "${SYSTEM_C}, "; done | sed -e 's|, $||')"
-
- db_subst cnt-curl/title TITLE "${TITLE}"
-
- db_subst cnt-curl/system CHOICES "${SYSTEMS}"
- db_subst cnt-curl/system CHOICES_C "${SYSTEMS_C}"
-
- db_fset cnt-curl/system seen false
-
- db_settitle cnt-curl/title
- db_input high cnt-curl/system || true
- db_go
-
- db_get cnt-curl/system
- SYSTEM="${RET}" # select
-
- echo "SYSTEM=\"${SYSTEM}\"" >> "${DEBCONF_TMPDIR}/debconf.default"
- export SYSTEM
-}
-
-System
-
-db_stop