Browse Source

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!)
Mark Reynolds 8 years ago
parent
commit
95a7f23262
1 changed files with 6 additions and 1 deletions
  1. 6 1
      ldap/admin/src/scripts/db2bak.pl.in

+ 6 - 1
ldap/admin/src/scripts/db2bak.pl.in

@@ -105,7 +105,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}";