Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
1b04ef88
Commit
1b04ef88
authored
Aug 19, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 511337: Make checksetup.pl properly throw a warning when it can't chmod/chown a file
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
parent
c9806c35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
Filesystem.pm
Bugzilla/Install/Filesystem.pm
+6
-3
strings.txt.pl
template/en/default/setup/strings.txt.pl
+2
-0
No files found.
Bugzilla/Install/Filesystem.pm
View file @
1b04ef88
...
...
@@ -30,6 +30,7 @@ use strict;
use
Bugzilla::
Constants
;
use
Bugzilla::
Error
;
use
Bugzilla::Install::
Localconfig
;
use
Bugzilla::Install::
Util
qw(install_string)
;
use
Bugzilla::
Util
;
use
File::
Find
;
...
...
@@ -600,10 +601,12 @@ sub _fix_cvs_dirs {
sub
_fix_perms
{
my
(
$name
,
$owner
,
$group
,
$perms
)
=
@_
;
#printf ("Changing $name to %o\n", $perms);
chown
$owner
,
$group
,
$name
||
warn
"Failed to change ownership of $name: $!"
;
chown
$owner
,
$group
,
$name
or
warn
install_string
(
'chown_failed'
,
{
path
=>
$name
,
error
=>
$!
})
.
"\n"
;
chmod
$perms
,
$name
||
warn
"Failed to change permissions of $name: $!"
;
or
warn
install_string
(
'chmod_failed'
,
{
path
=>
$name
,
error
=>
$!
})
.
"\n"
;
}
sub
_check_web_server_group
{
...
...
template/en/default/setup/strings.txt.pl
View file @
1b04ef88
...
...
@@ -33,6 +33,8 @@
checking_dbd
=>
'Checking available perl DBD modules...'
,
checking_optional
=>
'The following Perl modules are optional:'
,
checking_modules
=>
'Checking perl modules...'
,
chmod_failed
=>
'##path##: Failed to change permissions: ##error##'
,
chown_failed
=>
'##path##: Failed to change ownership: ##error##'
,
commands_dbd
=>
<<
EOT
,
YOU
MUST
RUN
ONE
OF
THE
FOLLOWING
COMMANDS
(
depending
on
which
database
you
use
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment