summaryrefslogtreecommitdiff
path: root/debian/tmp/live-build-cron-manual.config
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-07-15 20:31:44 +0200
committerDaniel Baumann <daniel@debian.org>2011-07-15 20:38:39 +0200
commit7e4c34b6f2259425ed4258d8f36b55e6d468efdf (patch)
tree043237418591a3036d18eae06029d380586ef8bd /debian/tmp/live-build-cron-manual.config
parente24497b72306d4519d8c2999c6b7c0dbec9166ef (diff)
downloadvyos-live-build-7e4c34b6f2259425ed4258d8f36b55e6d468efdf.tar.gz
vyos-live-build-7e4c34b6f2259425ed4258d8f36b55e6d468efdf.zip
Adding initial live-build-cron package.
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