summaryrefslogtreecommitdiff
path: root/debian/tmp/live-build-cron-manual.config
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tmp/live-build-cron-manual.config')
-rw-r--r--debian/tmp/live-build-cron-manual.config50
1 files changed, 50 insertions, 0 deletions
diff --git a/debian/tmp/live-build-cron-manual.config b/debian/tmp/live-build-cron-manual.config
new file mode 100644
index 000000000..264477825
--- /dev/null
+++ b/debian/tmp/live-build-cron-manual.config
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+_FILES="/etc/live/autobuild.conf /etc/live/autobuild.d/*"
+
+for _FILE in "${_FILES}"
+do
+ if [ -e "${_FILE}" ]
+ then
+ _DEBCONF="true"
+
+ . "${_FILE}" || true
+ fi
+done
+
+if [ "${_DEBCONF}" = "true" ]
+then
+ db_set live-autobuild-manual/enable "${LIVE_AUTOBUILD_MANUAL}"
+fi
+
+db_settitle live-autobuild-manual/title
+db_input high live-autobuild-manual/enable || true
+db_go
+
+db_get live-autobuild-manual/enable
+LIVE_AUTOBUILD_MANUAL="${RET}"
+
+if [ "${LIVE_AUTOBUILD_MANUAL}" != "true" ]
+then
+ db_stop
+
+ exit 0
+fi
+
+db_settitle live-autobuild-manual/title
+db_input low live-autobuild-manual/username || true
+db_go
+
+db_settitle live-autobuild-manual/title
+db_input low live-autobuild-manual/directory || true
+db_go
+
+db_settitle live-autobuild-manual/title
+db_input low live-autobuild-manual/cron || true
+db_go
+
+db_stop