[debian-edu-commits] debian-edu/slbackup.git (#30) - wheezy-proposed-updates (branch) updated: debian/0.0.12-4-1-ge9b39de

Holger Levsen holger at alioth.debian.org
Tue Oct 8 12:20:15 UTC 2013


The branch, wheezy-proposed-updates has been updated
       via  e9b39de67277bee03ca6a052fb4fa9f9a7b96db6 (commit)
      from  138552ef5f076c0a5a32788211d1c582ae7586fc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 debian/changelog |    8 ++++++++
 debian/postinst  |    9 +++++++++
 2 files changed, 17 insertions(+)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 566331b..7157e06 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+slbackup (0.0.12-5) UNRELEASED; urgency=low
+
+  * /debian/postinst:
+    + Make sure the backup directory (server_destdir) as configured via debconf
+      gets created by postinst script.
+
+ -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Mon, 22 Apr 2013 12:07:03 +0200
+
 slbackup (0.0.12-4) experimental; urgency=low
 
   * /debian/control:
diff --git a/debian/postinst b/debian/postinst
index 92a31a8..9c03599 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -8,6 +8,7 @@
 use strict;
 use Debconf::Client::ConfModule ":all";
 use Config::General;
+use File::Path qw(make_path);
 
 
 ## subsections
@@ -50,6 +51,14 @@ if ($ARGV[0] and $ARGV[0] eq "configure") {
 	$config->{client}->{$client_name}->{keep} = $client_keep;
 	$config->{server_type} = $server_type;
 	$config->{server_destdir} = $server_destdir;
+	if ( ! -e "$server_destdir" ) {
+		make_path("$server_destdir", {
+		                owner => 'root',
+		                group => 'root',
+		                mode => '0700',
+		          }
+		);
+	}
 	$config->{server_address} = $server_address;
 	$config->{server_user} = $server_user;
 	


hooks/post-receive
-- 
slbackup.git (Debian package slbackup)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "slbackup.git" (Debian package slbackup).




More information about the debian-edu-commits mailing list