diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2018-03-19 12:48:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2018-05-27 05:59:31 +0000 |
commit | 4c41bb9d1b95ee745a4318a6484b723f145c08da (patch) | |
tree | 313eeaa11e580eed14897d6fb5b21b76249e3ede /share/scripts/debconf.d/0003-debconf | |
parent | FIXME (diff) | |
download | compute-tools-tmp-nspawn2.tar.xz compute-tools-tmp-nspawn2.zip |
Adding local includes (files copy; FIXME).tmp-nspawn2
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-x | share/scripts/debconf.d/0003-debconf | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/share/scripts/debconf.d/0003-debconf b/share/scripts/debconf.d/0003-debconf index cb9ae2a..f58f57b 100755 --- a/share/scripts/debconf.d/0003-debconf +++ b/share/scripts/debconf.d/0003-debconf @@ -1068,6 +1068,25 @@ Internal_options () fi echo "CNT_OVERLAY=\"${CNT_OVERLAY}\"" >> "${DEBCONF_TMPDIR}/debconf.default" + + NUMBER="1" + + while db_get cnt-debconf/files${NUMBER}/copy && [ "${RET}" ] + do + eval FILES${NUMBER}_COPY="\"${RET}\"" # string (w/o empty) + + NUMBER="$((${NUMBER} + 1))" + done + + FILES_NUMBER="$((${NUMBER} - 1))" + + echo "FILES_NUMBER=\"${FILES_NUMBER}\"" >> "${DEBCONF_TMPDIR}/debconf.default" + + for NUMBER in $(seq 1 ${FILES_NUMBER}) + do + eval FILES_COPY="$`echo FILES${NUMBER}_COPY`" + echo "FILES${NUMBER}_COPY=\"${FILES_COPY}\"" >> "${DEBCONF_TMPDIR}/debconf.default" + done } Mode |