From 7e4c34b6f2259425ed4258d8f36b55e6d468efdf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 15 Jul 2011 20:31:44 +0200 Subject: Adding initial live-build-cron package. --- debian/tmp/live-build-cron-manual.config | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 debian/tmp/live-build-cron-manual.config (limited to 'debian/tmp/live-build-cron-manual.config') 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 -- cgit v1.2.3