[26778] in Source-Commits
/svn/athena r25748 - trunk/debathena/scripts/installer
daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Sun Sep 2 15:04:10 2012
Date: Sun, 2 Sep 2012 15:04:04 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201209021904.q82J44Lg014482@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: jdreed
Date: 2012-09-02 15:04:04 -0400 (Sun, 02 Sep 2012)
New Revision: 25748
Modified:
trunk/debathena/scripts/installer/install-debathena.beta.sh
Log:
- Set the "seen" flag for questions asked in the installer, but
which are irrelevant because of config packages we install.
Modified: trunk/debathena/scripts/installer/install-debathena.beta.sh
===================================================================
--- trunk/debathena/scripts/installer/install-debathena.beta.sh 2012-08-31 15:23:21 UTC (rev 25747)
+++ trunk/debathena/scripts/installer/install-debathena.beta.sh 2012-09-02 19:04:04 UTC (rev 25748)
@@ -12,11 +12,19 @@
# The user's umask will sometimes carry over; don't let that happen.
umask 022
-# If we run with the noninteractive frontend, mark Debconf questions as
-# seen, so you don't see all the suppressed questions next time you
-# upgrade that package, or worse, upgrade releases.
-export DEBCONF_NONINTERACTIVE_SEEN=true
-export DEBIAN_FRONTEND=noninteractive
+# Set the "seen" flag for all debconf questions that we configure
+# (Note: cluster installs still run noninteractively)
+cat <<EOF | debconf-set-selections
+openafs-client openafs-client/thiscell seen true
+openafs-client openafs-client/cachesize seen true
+krb5-config krb5-config/default_realm seen true
+zephyr-clients zephyr-clients/servers seen true
+# These are also questions asked by default, but
+# the user should probably see them anyway.
+#gdm shared/default-x-display-manager seen true
+#cyrus-common cyrus-common/removespool seen true
+#hddtemp hddtemp/daemon seen true
+EOF
output() {
printf '\033[38m'; echo "$@"; printf '\033[0m'
@@ -150,6 +158,13 @@
output -n "Please choose a category or press control-C to abort: "
read category
done
+if [ cluster = "$category" ]; then
+ # We still want these set for cluster installs, which should be truly
+ # noninteractive
+ export DEBCONF_NONINTERACTIVE_SEEN=true
+ export DEBIAN_FRONTEND=noninteractive
+fi
+
mainpackage=debathena-$category
csoft=no