File: rt_setup_database_upgrade_basedir.diff

package info (click to toggle)
request-tracker4 4.4.6%2Bdfsg-1.1%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 63,460 kB
  • sloc: javascript: 130,444; perl: 65,299; sh: 1,322; makefile: 471; python: 37; php: 30
file content (27 lines) | stat: -rw-r--r-- 944 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 1f688944985a10288fe093ed7df518561ca1900c Mon Sep 17 00:00:00 2001
From: Dominic Hargreaves <dom@earth.li>
Date: Sun, 24 Mar 2013 18:38:07 +0000
Subject: Fix relative references to config path

Forwarded: not-needed
Bug: http://issues.bestpractical.com/Ticket/Display.html?id=13592
Bug-Debian: http://bugs.debian.org/518556

Patch-Name: rt_setup_database_upgrade_basedir.diff
---
 sbin/rt-setup-database.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/rt-setup-database.in b/sbin/rt-setup-database.in
index 7ec29fc9..0b0ec148 100644
--- a/sbin/rt-setup-database.in
+++ b/sbin/rt-setup-database.in
@@ -421,7 +421,7 @@ sub action_insert {
 
 sub action_upgrade {
     my %args = @_;
-    my $base_dir = $args{'datadir'} || "./etc/upgrade";
+    my $base_dir = $args{'datadir'} || $RT::EtcPath . "/upgrade";
     return (0, "Couldn't read dir '$base_dir' with upgrade data")
         unless -d $base_dir || -r _;