summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-11-02 14:24:44 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-11-02 14:24:44 +0000
commit0b7ab9c52dfb13f8522e293a4f3a078e388dea22 (patch)
treebb21e4b5059d770f20bb8960717e706c4ac42dca
parentRenaming internal config variable to more suitable debconf in build- and crea... (diff)
downloadcompute-tools-0b7ab9c52dfb13f8522e293a4f3a078e388dea22.tar.xz
compute-tools-0b7ab9c52dfb13f8522e293a4f3a078e388dea22.zip
Also removing config file stub when exiting build- or create-scripts.next+rebase
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rwxr-xr-xshare/build-scripts/debconf.d/0001-preseed-file2
-rwxr-xr-xshare/create-scripts/debconf.d/0001-preseed-file2
2 files changed, 4 insertions, 0 deletions
diff --git a/share/build-scripts/debconf.d/0001-preseed-file b/share/build-scripts/debconf.d/0001-preseed-file
index 33f5427..c1a311d 100755
--- a/share/build-scripts/debconf.d/0001-preseed-file
+++ b/share/build-scripts/debconf.d/0001-preseed-file
@@ -23,6 +23,7 @@ PROJECT="open-infrastructure"
SOFTWARE="compute-tools"
PROGRAM="container"
+CONFIG="/etc/${SOFTWARE}/config"
DEBCONF="/etc/${SOFTWARE}/debconf"
DEBCONF_NOWARNINGS="true"
@@ -79,6 +80,7 @@ then
;;
exit)
+ rm -f "${CONFIG}/${NAME}.conf"
exit 1
;;
diff --git a/share/create-scripts/debconf.d/0001-preseed-file b/share/create-scripts/debconf.d/0001-preseed-file
index 33f5427..c1a311d 100755
--- a/share/create-scripts/debconf.d/0001-preseed-file
+++ b/share/create-scripts/debconf.d/0001-preseed-file
@@ -23,6 +23,7 @@ PROJECT="open-infrastructure"
SOFTWARE="compute-tools"
PROGRAM="container"
+CONFIG="/etc/${SOFTWARE}/config"
DEBCONF="/etc/${SOFTWARE}/debconf"
DEBCONF_NOWARNINGS="true"
@@ -79,6 +80,7 @@ then
;;
exit)
+ rm -f "${CONFIG}/${NAME}.conf"
exit 1
;;