[Rt-commit] rt branch, 4.4/external-storage, updated. rt-4.2.11-28-g45d8658
Shawn Moore
shawn at bestpractical.com
Thu May 21 18:50:41 EDT 2015
The branch, 4.4/external-storage has been updated
via 45d865847b163b2526413b60a0bd93cfe551b8c8 (commit)
from 2ae713c13dd89831c3f4240cb29fefae9cf39efa (commit)
Summary of changes:
sbin/rt-externalize-attachments.in | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 45d865847b163b2526413b60a0bd93cfe551b8c8
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Thu May 21 22:50:05 2015 +0000
Die with a message if backend is missing
Due to %ExternalStorage now being part of core config, this is the
branch that gets hit :)
diff --git a/sbin/rt-externalize-attachments.in b/sbin/rt-externalize-attachments.in
index 27f544d..ad99867 100755
--- a/sbin/rt-externalize-attachments.in
+++ b/sbin/rt-externalize-attachments.in
@@ -74,9 +74,8 @@ use Fcntl ':flock';
exit unless flock main::DATA, LOCK_EX | LOCK_NB;
die "\%ExternalStorage is not configured\n"
- unless RT->Config->Get("ExternalStorage");
-
-exit unless $RT::ExternalStorage::BACKEND;
+ unless RT->Config->Get("ExternalStorage")
+ && $RT::ExternalStorage::BACKEND;
# pull out the previous high-water mark for each object type
my $last = RT->System->FirstAttribute("ExternalStorage");
-----------------------------------------------------------------------
More information about the rt-commit
mailing list