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 |