summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2018-03-19 12:48:52 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2018-05-27 05:59:31 +0000
commit4c41bb9d1b95ee745a4318a6484b723f145c08da (patch)
tree313eeaa11e580eed14897d6fb5b21b76249e3ede
parentFIXME (diff)
downloadcompute-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>
-rwxr-xr-xshare/scripts/debconf.d/0003-debconf19
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