[issue800] grml-debootstrap local configuration fixed

Tong Sun bts at bts.grml.org
Fri Jan 15 20:42:33 CET 2010


Tong Sun <suntong at cpan.org> added the comment:

so that user customization to /etc/debootstrap/config can be preserved
during grml-debootstrap upgrade
---
 grml-debootstrap |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/grml-debootstrap b/grml-debootstrap
index 5ca15e8..2b88413 100755
--- a/grml-debootstrap
+++ b/grml-debootstrap
@@ -101,6 +101,14 @@ if [ -r /etc/debootstrap/config ] ; then
       . /etc/debootstrap/config
    fi
 fi
+# source local configuration file
+if [ -r /usr/share/grml-debootstrap/config ] ; then
+    einfo "Reading local config file /usr/share/grml-debootstrap/config."
+    if ! . "/usr/share/grml-debootstrap/config" ; then
+        eerror "Error reading config file /usr/share/grml-debootstrap/config" 
+	eend 1 ; exit 1
+    fi
+fi
 # }}}
 
 # cmdline handling {{{
-- 
1.6.5

----------
messages: 2834, 2836
nosy: suntong
priority: feature
status: chatting
title: grml-debootstrap local configuration fixed

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue800>
_____________________________________


More information about the Bugs-changes mailing list