[pkg-bacula-commits] [bacula] 04/06: bacula-director.postinst: fix typo, remove verbose flag from rm and make tempfile name prettier
Carsten Leonhardt
leo at moszumanska.debian.org
Mon Sep 19 15:57:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
leo pushed a commit to branch master
in repository bacula.
commit 8fc749eae7ca8ea14cc0b32cefc4b23dc5ab8256
Author: Carsten Leonhardt <leo at debian.org>
Date: Mon Sep 19 14:46:29 2016 +0200
bacula-director.postinst: fix typo, remove verbose flag from rm and
make tempfile name prettier
---
debian/bacula-director.postinst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/debian/bacula-director.postinst b/debian/bacula-director.postinst
index 0e736a7..08cd609 100644
--- a/debian/bacula-director.postinst
+++ b/debian/bacula-director.postinst
@@ -98,19 +98,19 @@ case "$1" in
ucfr -f bacula-director $DSTDIR/scripts/make_catalog_backup
fi
- tempfile=`tempfile`
+ tempfile=`tempfile -p "conf"`
install -m 0755 -o root -g root $TEMPLATES/scripts/make_catalog_backup $tempfile
DBLONGNAME=$(cat /usr/share/bacula-common/dbtype | sed 's/pgsql/postgresql/')
sed "s/XX_DBLONGNAME_XX/$DBLONGNAME/" -i $tempfile
- if [ "$dbc_install" = "true" -a "x" != "x$dbc_user" ] ; then
+ if [ "$dbc_install" = "true" -a "x" != "x$dbc_dbuser" ] ; then
sed "s/XXX_DBUSER_XXX/$dbc_dbuser/" -i $tempfile
fi
ucf --debconf-ok --three-way $tempfile $DSTDIR/scripts/make_catalog_backup
ucfr bacula-director $DSTDIR/scripts/make_catalog_backup
- rm -vf $tempfile
+ rm -f $tempfile
;;
abort-upgrade|abort-remove|abort-deconfigure)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bacula/bacula.git
More information about the pkg-bacula-commits
mailing list