Thursday, May 25, 2017

[389-commits] [389-ds-base] 01/01: Ticket 49241 - add symblic link location to db2bak.pl output

This is an automated email from the git hooks/post-receive script.

mreynolds pushed a commit to branch 389-ds-base-1.3.5
in repository 389-ds-base.

commit 556674c763df4ddc39f6ed7c42503c452b46dcc5
Author: Mark Reynolds <mreynolds@redhat.com>
Date: Wed May 24 12:15:20 2017 -0400

Ticket 49241 - add symblic link location to db2bak.pl output

Description: If a symbolic link is used for the script's backup
location then add info to the output.

https://pagure.io/389-ds-base/issue/49241

Reviewed by: firstyear(Thanks!)

(cherry picked from commit 95a7f23262076d90fdc8a9ec76e131e9e4c09bcc)
---
ldap/admin/src/scripts/db2bak.pl.in | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ldap/admin/src/scripts/db2bak.pl.in b/ldap/admin/src/scripts/db2bak.pl.in
index be39f19..06e4d6d 100644
--- a/ldap/admin/src/scripts/db2bak.pl.in
+++ b/ldap/admin/src/scripts/db2bak.pl.in
@@ -111,7 +111,12 @@ if ($archivedir eq "") {
} else {
$symname = $archivedir;
}
- print("Back up directory: $archivedir\n");
+ if ($symname eq "") {
+ print("Back up directory: $archivedir\n");
+ } else {
+ print("Back up directory: $archivedir -> $mybakdir/$archivebase\n");
+ }
+
# If an archive dir is specified, create it as a symlink pointing
# to the default backup dir not to violate the selinux policy.
$archivedir = "${mybakdir}/${archivebase}";

--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
389-commits mailing list -- 389-commits@lists.fedoraproject.org
To unsubscribe send an email to 389-commits-leave@lists.fedoraproject.org

No comments:

Post a Comment