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

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