Blame SOURCES/0055-Ticket-49241-add-symblic-link-location-to-db2bak.pl-.patch

b69e47
From 6935bd0821395051c0483b0ee393d2d4567f6f0c Mon Sep 17 00:00:00 2001
b69e47
From: Mark Reynolds <mreynolds@redhat.com>
b69e47
Date: Wed, 24 May 2017 12:15:20 -0400
b69e47
Subject: [PATCH] Ticket 49241 - add symblic link location to db2bak.pl output
b69e47
b69e47
Description:  If a symbolic link is used for the script's backup
b69e47
              location then add info to the output.
b69e47
b69e47
https://pagure.io/389-ds-base/issue/49241
b69e47
b69e47
Reviewed by: firstyear(Thanks!)
b69e47
b69e47
(cherry picked from commit 95a7f23262076d90fdc8a9ec76e131e9e4c09bcc)
b69e47
---
b69e47
 ldap/admin/src/scripts/db2bak.pl.in | 7 ++++++-
b69e47
 1 file changed, 6 insertions(+), 1 deletion(-)
b69e47
b69e47
diff --git a/ldap/admin/src/scripts/db2bak.pl.in b/ldap/admin/src/scripts/db2bak.pl.in
b69e47
index 335285e..352a01e 100644
b69e47
--- a/ldap/admin/src/scripts/db2bak.pl.in
b69e47
+++ b/ldap/admin/src/scripts/db2bak.pl.in
b69e47
@@ -105,7 +105,12 @@ if ($archivedir eq "") {
b69e47
     } else {
b69e47
         $symname = $archivedir;
b69e47
     }
b69e47
-    print("Back up directory: $archivedir\n");
b69e47
+    if ($symname eq "") {
b69e47
+        print("Back up directory: $archivedir\n");
b69e47
+    } else {
b69e47
+        print("Back up directory: $archivedir -> $mybakdir/$archivebase\n");
b69e47
+    }
b69e47
+
b69e47
     # If an archive dir is specified, create it as a symlink pointing
b69e47
     # to the default backup dir not to violate the selinux policy.
b69e47
     $archivedir = "${mybakdir}/${archivebase}";
b69e47
-- 
b69e47
2.9.4
b69e47