File: 0005-Assume-default-instance.patch

package info (click to toggle)
redmine 6.0.5%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 20,952 kB
  • sloc: ruby: 116,216; javascript: 12,887; sh: 469; perl: 303; python: 179; makefile: 30
file content (18 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Date: Mon, 15 Feb 2016 09:11:07 -0200
Last-Update: 2022-03-29
Forwarded: not-needed
Author: Antonio Terceiro <terceiro@debian.org>
Description: Assume default instance
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/lib/redmine/multi_tenancy.rb
+++ b/lib/redmine/multi_tenancy.rb
@@ -27,7 +27,7 @@
     def tenant
       # X_DEBIAN_SITEID is kept here for backwards compatibility with existing
       # Debian installations.
-      ENV['X_DEBIAN_SITEID'] || ENV['REDMINE_INSTANCE']
+      ENV['X_DEBIAN_SITEID'] || ENV['REDMINE_INSTANCE'] || 'default'
     end
 
     def tenant?