[Fai-commit] r3332 - trunk/bin
fai-repository at svn.debian.org
fai-repository at svn.debian.org
Mon Mar 27 21:54:57 UTC 2006
Author: lange
Date: 2006-03-27 21:54:57 +0000 (Mon, 27 Mar 2006)
New Revision: 3332
Modified:
trunk/bin/fai-debconf
Log:
add test if debconf data file exists
Modified: trunk/bin/fai-debconf
===================================================================
--- trunk/bin/fai-debconf 2006-03-27 21:14:48 UTC (rev 3331)
+++ trunk/bin/fai-debconf 2006-03-27 21:54:57 UTC (rev 3332)
@@ -5,7 +5,7 @@
# fai-debconf - set debconf values using classes
#
# This script is part of FAI (Fully Automatic Installation)
-# (c) 2005 by Thomas Lange, lange at informatik.uni-koeln.de
+# (c) 2005-2006 by Thomas Lange, lange at informatik.uni-koeln.de
# Universitaet zu Koeln
#
#*********************************************************************
@@ -26,7 +26,7 @@
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#*********************************************************************
-version="version 1.0, 8-mar-2005"
+version="version 1.1, 27-mar-2006"
# variables needed: $classes, $ROOTCMD, $LOGDIR, $target
@@ -60,6 +60,8 @@
reconfigure_packages() {
local packages p
+
+ [ -s $LOGDIR/debconf.data ] || return # nothing to do if is size 0 or missing
packages=$(awk '{print $1}' $LOGDIR/debconf.data | sort | uniq)
for p in $packages; do
# test if package is installed
@@ -86,7 +88,7 @@
exit $ex
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- # main program
+# main program
reconf=1 # call dpkg-reconfigure by default
while getopts "hvs" opt ; do
More information about the Fai-commit
mailing list