]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 144285 - checksetup.pl fails to set data dir (and other dir)
authorbbaetz%student.usyd.edu.au <>
Tue, 4 Jun 2002 09:38:55 +0000 (09:38 +0000)
committerbbaetz%student.usyd.edu.au <>
Tue, 4 Jun 2002 09:38:55 +0000 (09:38 +0000)
permissions properly
r=justdave, myk

checksetup.pl

index 79f08deb9d08df9185a26b6e829582339b0758f7..4b6a23f272b5e6f228f8a8a6197aa81f7cb21c7a 100755 (executable)
@@ -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';
 }