summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorJeff Fearn <Jeff.Fearn@gmail.com>2015-06-08 07:07:14 +0200
committerByron Jones <glob@mozilla.com>2015-06-08 07:07:14 +0200
commitbd2e246adfc0a09677c8e27edff2c0a02c39e7cf (patch)
treecec0ecd796bc1de6c110aa6f5c58035fff287c82 /checksetup.pl
parentdb6b722ddca04ee1d067e010abc3e8e7fd9384c4 (diff)
downloadbugzilla-bd2e246adfc0a09677c8e27edff2c0a02c39e7cf.tar.gz
bugzilla-bd2e246adfc0a09677c8e27edff2c0a02c39e7cf.tar.xz
Bug 1164761: Add a couple of extra options to checksetup to skip some actions
r=glob,a=glob
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl11
1 files changed, 9 insertions, 2 deletions
diff --git a/checksetup.pl b/checksetup.pl
index b1a3628bf..041321ead 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -43,7 +43,8 @@ init_console();
my %switch;
GetOptions(\%switch, 'help|h|?', 'check-modules', 'cpanfile',
'no-templates|t', 'verbose|v|no-silent',
- 'make-admin=s', 'reset-password=s', 'version|V');
+ 'make-admin=s', 'reset-password=s', 'version|V',
+ 'no-permissions|p');
# Print the help message if that switch was selected.
pod2usage({-verbose => 1, -exitval => 1}) if $switch{'help'};
@@ -150,7 +151,7 @@ Bugzilla::Template::precompile_templates(!$silent)
# Set proper rights (--CHMOD--)
###########################################################################
-fix_all_file_permissions(!$silent);
+fix_all_file_permissions(!$silent) unless $switch{'no-permissions'};
###########################################################################
# Check GraphViz setup
@@ -301,6 +302,12 @@ Output results of SCRIPT being processed.
Display the version of Bugzilla, Perl, and some info about the
system that Bugzilla is being installed on, and then exit.
+=item B<--no-permissions> (B<-p>)
+
+Don't update file permissions. Owner, group, and mode of files and
+directories will not be changed. Use this if your installation is
+managed by a software packaging system such as RPM or APT.
+
=back
=head1 DESCRIPTION