[Pkg-openldap-devel] [openldap] 26/29: r1586 at pulsar: torsten | 2005-04-01 13:46:43 +0200 * debian/slapd.postinst: Include the version of the backup in the backup of a database directory.
Timo Aaltonen
tjaalton-guest at alioth.debian.org
Thu Oct 10 05:34:53 UTC 2013
This is an automated email from the git hooks/post-receive script.
tjaalton-guest pushed a commit to annotated tag 2.2.23-0.pre6
in repository openldap.
commit 4b7e1f7fead4e8033b903da7cfa4745f4fea9066
Author: Torsten Landschoff <torsten at debian.org>
Date: Fri Apr 1 11:44:58 2005 +0000
r1586 at pulsar: torsten | 2005-04-01 13:46:43 +0200
* debian/slapd.postinst: Include the version of the backup in the
backup of a database directory.
---
debian/changelog | 2 ++
debian/slapd.postinst | 5 ++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 2410922..9ddbfef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,8 @@ openldap2.2 (2.2.23-0.pre6) experimental; urgency=low
+ debian/slapd.scripts-common: Mark all databases before this version
as incompatible.
* Fix some bashisms in maintainer scripts.
+ * debian/slapd.postinst: Include the version of the backup in the
+ backup of a database directory.
Carlo Contavalli <ccontavalli at debian.org>:
* debian/slapd.init: Print command line if starting a daemon failed.
diff --git a/debian/slapd.postinst b/debian/slapd.postinst
index 8f70633..63e61b8 100644
--- a/debian/slapd.postinst
+++ b/debian/slapd.postinst
@@ -27,7 +27,10 @@ compute_backup_path() { # {{{
# exists to be really sure... -- Torsten
local target
- target="/var/backups/$basedn.ldapdb"
+ local id
+ id="$OLD_VERSION"
+ [ -n "$id" ] || id=`date +%Y%m%d-%H%M%S`
+ target="/var/backups/$basedn-$id.ldapdb"
if [ -e "$target" ]; then
echo >&2
echo >&2 " Backup path $target exists. Giving up..."
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openldap/openldap.git
More information about the Pkg-openldap-devel
mailing list