diff options
author | Daniel Baumann <daniel@debian.org> | 2011-07-20 11:05:27 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-07-20 11:05:27 +0200 |
commit | 6a844f1bb27755192722b3bc21ef247cabaec891 (patch) | |
tree | e44f59f0e614202ed288903650920a425b402ffb /debian/live-build-cron.config | |
parent | b3e6ff2e14f3d2763547fb0c523af8ee23317124 (diff) | |
download | vyos-live-build-6a844f1bb27755192722b3bc21ef247cabaec891.tar.gz vyos-live-build-6a844f1bb27755192722b3bc21ef247cabaec891.zip |
Reworking debconf stuff of merging former live-autobuild-manual and live-autobuild-images into a single live-build-cron.
Diffstat (limited to 'debian/live-build-cron.config')
-rw-r--r-- | debian/live-build-cron.config | 92 |
1 files changed, 57 insertions, 35 deletions
diff --git a/debian/live-build-cron.config b/debian/live-build-cron.config index b47922de0..e720e49a0 100644 --- a/debian/live-build-cron.config +++ b/debian/live-build-cron.config @@ -18,61 +18,83 @@ done if [ "${_DEBCONF}" = "true" ] then - db_set live-build-cron-images/enable "${LIVE_BUILD_CRON_IMAGES}" - db_set live-build-cron-images/directory "${LIVE_BUILD_CRON_IMAGES_DIRECTORY}" - db_set live-build-cron-images/build "${LIVE_BUILD_CRON_IMAGES_BUILD}" + # live-build-cron-images + db_set live-build-cron/images-enable "${LIVE_BUILD_CRON_IMAGES}" + db_set live-build-cron/images-directory "${LIVE_BUILD_CRON_IMAGES_DIRECTORY}" + db_set live-build-cron/images-build "${LIVE_BUILD_CRON_IMAGES_BUILD}" - db_set live-build-cron-images/daily-distributions "${LIVE_BUILD_CRON_IMAGES_DAILY_DISTRIBUTIONS}" - db_set live-build-cron-images/daily-flavours "${LIVE_BUILD_CRON_IMAGES_DAILY_FLAVOURS}" + db_set live-build-cron/images-daily-distributions "${LIVE_BUILD_CRON_IMAGES_DAILY_DISTRIBUTIONS}" + db_set live-build-cron/images-daily-flavours "${LIVE_BUILD_CRON_IMAGES_DAILY_FLAVOURS}" - db_set live-build-cron-images/weekly-distributions "${LIVE_BUILD_CRON_IMAGES_WEEKLY_DISTRIBUTIONS}" - db_set live-build-cron-images/weekly-flavours "${LIVE_BUILD_CRON_IMAGES_WEEKLY_FLAVOURS}" + db_set live-build-cron/images-weekly-distributions "${LIVE_BUILD_CRON_IMAGES_WEEKLY_DISTRIBUTIONS}" + db_set live-build-cron/images-weekly-flavours "${LIVE_BUILD_CRON_IMAGES_WEEKLY_FLAVOURS}" - db_set live-build-cron-images/monthly-distributions "${LIVE_BUILD_CRON_IMAGES_MONTHLY_DISTRIBUTIONS}" - db_set live-build-cron-images/monthly-flavours "${LIVE_BUILD_CRON_IMAGES_MONTHLY_FLAVOURS}" + db_set live-build-cron/images-monthly-distributions "${LIVE_BUILD_CRON_IMAGES_MONTHLY_DISTRIBUTIONS}" + db_set live-build-cron/images-monthly-flavours "${LIVE_BUILD_CRON_IMAGES_MONTHLY_FLAVOURS}" - db_set live-build-cron-images/source "${LIVE_BUILD_CRON_IMAGES_SOURCE}" + db_set live-build-cron/images-source "${LIVE_BUILD_CRON_IMAGES_SOURCE}" + + # live-build-cron-manual + db_set live-build-cron/manual-enable "${LIVE_BUILD_CRON_MANUAL}" fi -db_settitle live-build-cron-images/title -db_input high live-build-cron-images/enable || true +db_settitle live-build-cron/title +db_input high live-build-cron/images-enable || true db_go -db_get live-build-cron-images/enable +db_get live-build-cron/images-enable LIVE_BUILD_CRON_IMAGES="${RET}" -if [ "${LIVE_BUILD_CRON_IMAGES}" != "true" ] +if [ "${LIVE_BUILD_CRON_IMAGES}" = "true" ] then - db_stop + db_settitle live-build-cron/title + db_input low live-build-cron/images-directory || true + db_go - exit 0 -fi + db_settitle live-build-cron/title + db_input low live-build-cron/images-build || true + db_go -db_settitle live-build-cron-images/title -db_input low live-build-cron-images/directory || true -db_go + for _BUILDS in daily weekly monthly + do + db_settitle live-build-cron/title + db_input low live-build-cron/images-${_BUILDS}-distributions || true + db_go -db_settitle live-build-cron-images/title -db_input low live-build-cron-images/build || true -db_go + db_settitle live-build-cron/title + db_input low live-build-cron/images-${_BUILDS}-flavours || true + db_go + done -for _BUILDS in daily weekly monthly -do - db_settitle live-build-cron-images/title - db_input low live-build-cron-images/${_BUILDS}-distributions || true + db_settitle live-build-cron/title + db_input low live-build-cron/images-source || true db_go - db_settitle live-build-cron-images/title - db_input low live-build-cron-images/${_BUILDS}-flavours || true + db_settitle live-build-cron/title + db_input low live-build-cron/images-cron || true db_go -done +fi -db_settitle live-build-cron-images/title -db_input low live-build-cron-images/source || true +db_settitle live-build-cron/title +db_input high live-build-cron/manual-enable || true db_go -db_settitle live-build-cron-images/title -db_input low live-build-cron-images/cron || true -db_go +db_get live-build-cron/manual-enable +LIVE_BUILD_CRON_MANUAL="${RET}" + +if [ "${LIVE_BUILD_CRON_MANUAL}" = "true" ] +then + db_settitle live-build-cron/title + db_input low live-build-cron/manual-username || true + db_go + + db_settitle live-build-cron/title + db_input low live-build-cron/manual-directory || true + db_go + + db_settitle live-build-cron/title + db_input low live-build-cron/manual-cron || true + db_go +fi db_stop |