summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Constants.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-07-28 17:28:05 +0200
committermkanat%bugzilla.org <>2006-07-28 17:28:05 +0200
commit6963781bdd5c0b2cbf617345d9573e989c56bd2f (patch)
tree9579f5898a30bfcba8a38499160dc54c5cb9c5fd /Bugzilla/Constants.pm
parentc98c1fce9f4be10f97107584891512eef4f916ee (diff)
downloadbugzilla-6963781bdd5c0b2cbf617345d9573e989c56bd2f.tar.gz
bugzilla-6963781bdd5c0b2cbf617345d9573e989c56bd2f.tar.xz
Bug 344855: Create a subroutine that does all of checksetup's requirements checking
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=myk
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r--Bugzilla/Constants.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm
index 8a57b343a..0bbbfa7d5 100644
--- a/Bugzilla/Constants.pm
+++ b/Bugzilla/Constants.pm
@@ -109,6 +109,7 @@ use File::Basename;
BUG_STATE_OPEN
DB_MODULE
+ ROOT_USER
);
@Bugzilla::Constants::EXPORT_OK = qw(contenttypes);
@@ -298,6 +299,8 @@ use constant DB_MODULE => {
name => 'PostgreSQL'},
};
+use constant ROOT_USER => $^O =~ /MSWin32/i ? 'Administrator' : 'root';
+
sub bz_locations {
# We know that Bugzilla/Constants.pm must be in %INC at this point.
# So the only question is, what's the name of the directory