summaryrefslogtreecommitdiffstats
path: root/debian/bcfg2.postinst
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-02-20 02:08:41 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-02-20 02:08:41 +0000
commit603402bbe43510ef50a10819e95854d58dd63cc4 (patch)
treef02049ba592af424d9c53ec05b320d18a28f595c /debian/bcfg2.postinst
parent887349ce75cef7cad243098858363cb0d9d99614 (diff)
downloadbcfg2-603402bbe43510ef50a10819e95854d58dd63cc4.tar.gz
bcfg2-603402bbe43510ef50a10819e95854d58dd63cc4.tar.bz2
bcfg2-603402bbe43510ef50a10819e95854d58dd63cc4.zip
Debian packaging updates from Ressu
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2853 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'debian/bcfg2.postinst')
-rw-r--r--debian/bcfg2.postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/bcfg2.postinst b/debian/bcfg2.postinst
index ebdef9d6b..3d6e75448 100644
--- a/debian/bcfg2.postinst
+++ b/debian/bcfg2.postinst
@@ -19,8 +19,13 @@ set -e
case "$1" in
configure)
+ 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
;;
abort-upgrade|abort-remove|abort-deconfigure)