diff options
author | mkanat%bugzilla.org <> | 2006-07-29 05:34:00 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-07-29 05:34:00 +0200 |
commit | b07bd7dcd718ed4a9a04d8010b74100d864c80bc (patch) | |
tree | 24ef30d1bd5b126cb5ba84a7316514fcc3d4d815 /Bugzilla/Constants.pm | |
parent | 0a075818e83337cad28529df317cca7bec93e32c (diff) | |
download | bugzilla-b07bd7dcd718ed4a9a04d8010b74100d864c80bc.tar.gz bugzilla-b07bd7dcd718ed4a9a04d8010b74100d864c80bc.tar.xz |
Bug 346343: Clean up all of checksetup prior to localconfig code
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=myk
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r-- | Bugzilla/Constants.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 0bbbfa7d5..15595c269 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -110,6 +110,7 @@ use File::Basename; DB_MODULE ROOT_USER + ON_WINDOWS ); @Bugzilla::Constants::EXPORT_OK = qw(contenttypes); @@ -299,8 +300,13 @@ use constant DB_MODULE => { name => 'PostgreSQL'}, }; +# The user who should be considered "root" when we're giving +# instructions to Bugzilla administrators. use constant ROOT_USER => $^O =~ /MSWin32/i ? 'Administrator' : 'root'; +# True if we're on Win32. +use constant ON_WINDOWS => ($^O =~ /MSWin32/i); + 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 |