diff options
author | bbaetz%student.usyd.edu.au <> | 2002-06-04 11:38:55 +0200 |
---|---|---|
committer | bbaetz%student.usyd.edu.au <> | 2002-06-04 11:38:55 +0200 |
commit | a162877b07097cf590f436aa6ce13ca12d54b0a6 (patch) | |
tree | 9bc6f2da3627357e53983c9a142ca21a18ca6496 | |
parent | 4ca74bcb8c2c7f3325e6455de9bc43b4c6b0fc36 (diff) | |
download | bugzilla-a162877b07097cf590f436aa6ce13ca12d54b0a6.tar.gz bugzilla-a162877b07097cf590f436aa6ce13ca12d54b0a6.tar.xz |
Bug 144285 - checksetup.pl fails to set data dir (and other dir)
permissions properly
r=justdave, myk
-rwxr-xr-x | checksetup.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/checksetup.pl b/checksetup.pl index 79f08deb9..4b6a23f27 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -1077,7 +1077,12 @@ if ($my_webservergroup) { fixPerms('css', $<, $webservergid, 027, 1); chmod 0644, 'globals.pl'; chmod 0644, 'RelationSet.pm'; + + # Don't use fixPerms here, because it won't change perms on the directory + # unless its using recursion + chown $<, $webservergid, 'data'; chmod 0771, 'data'; + chown $<, $webservergid, 'graphs'; chmod 0770, 'graphs'; } else { # get current gid from $( list @@ -1090,7 +1095,12 @@ if ($my_webservergroup) { fixPerms('*', $<, $gid, 022); fixPerms('template', $<, $gid, 022, 1); fixPerms('css', $<, $gid, 022, 1); + + # Don't use fixPerms here, because it won't change perms on the directory + # unless its using recursion + chown $<, $gid, 'data'; chmod 0777, 'data'; + chown $<, $gid, 'graphs'; chmod 01777, 'graphs'; } |