summaryrefslogtreecommitdiffstats
path: root/debian/bcfg2.postinst
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-04-26 15:37:57 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-04-26 15:37:57 +0000
commit6985fce34a2d04684896f8673adff1d40d57270f (patch)
tree0836cc938d637b6b92b35aa2e98487af520ee939 /debian/bcfg2.postinst
parentedb08610933becfc05e522dc97bad88770954871 (diff)
downloadbcfg2-6985fce34a2d04684896f8673adff1d40d57270f.tar.gz
bcfg2-6985fce34a2d04684896f8673adff1d40d57270f.tar.bz2
bcfg2-6985fce34a2d04684896f8673adff1d40d57270f.zip
Fix debian packages for systems w/o ucfr
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3062 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'debian/bcfg2.postinst')
-rw-r--r--debian/bcfg2.postinst6
1 files changed, 4 insertions, 2 deletions
diff --git a/debian/bcfg2.postinst b/debian/bcfg2.postinst
index 3d6e75448..6e1196e12 100644
--- a/debian/bcfg2.postinst
+++ b/debian/bcfg2.postinst
@@ -22,10 +22,12 @@ case "$1" in
OLDUMASK=$(umask)
umask 027
ucf /usr/share/bcfg2/bcfg2.conf /etc/bcfg2.conf
- ucfr bcfg2 /etc/bcfg2.conf
umask $OLDUMASK
ucf /usr/share/bcfg2/bcfg2.default /etc/default/bcfg2
- ucfr bcfg2 /etc/default/bcfg2
+ if [ -x /usr/bin/ucfr ] ; then
+ ucfr bcfg2 /etc/bcfg2.conf
+ ucfr bcfg2 /etc/default/bcfg2
+ fi
;;
abort-upgrade|abort-remove|abort-deconfigure)