Closed Bug 374632 Opened 18 years ago Closed 15 years ago

A separate script just to fix file/directory permissions

Categories

(Bugzilla :: Installation & Upgrading, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file)

Now that checksetup is localizeable, it depends on being able to access the template/ directory. Also, setup.cgi looks nicer if it has access to the skins/ directory. If we can't access the template/ directory, checksetup can't even run. So, we need a separate script, probably called fix-permissions.pl, that just fixes file permissions so that things can be accessed. If we haven't created a localconfig yet, it should just act like we have a blank webservergroup, which makes sense. Also, we can run that on a Bugzilla tarball when we build it, so that permissions will be the "no webservergroup" permissions by default. (Which probably won't matter too much, but hey.)
This is no longer all that important now that I'm not working on web-based installation.
Priority: -- → P4
Target Milestone: Bugzilla 3.2 → ---
Attached patch v1Splinter Review
Okay, here's a ridiculously-simple contrib script to do it.
Assignee: installation → mkanat
Status: NEW → ASSIGNED
Attachment #431296 - Flags: review+
Might as well check it in to 3.4 as well, since it's just a contrib script.
Target Milestone: --- → Bugzilla 3.4
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/ added contrib/fixperms.pl Committed revision 7059. Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/3.6/ added contrib/fixperms.pl Committed revision 7027. Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/3.4/ added contrib/fixperms.pl Committed revision 6745.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Why is this script useful? Why not just run checksetup.pl? Per comment 1, this script is not needed.
(In reply to comment #5) > Why is this script useful? Why not just run checksetup.pl? Per comment 1, this > script is not needed. It's needed because it's instantaneous and it sets permissions properly. The problem is that checksetup.pl -t takes a long time (in some sense--a few seconds, or a minute at most), and while it's running, you can't use Bugzilla. At least the last time I checked, checksetup.pl first sets permissions wrongly and then sets the rightly, whereas this script is nearly instantaneous and just sets permissions properly. It's useful in situations like Mozilla's, where they want to correct the permissions of files right after they're checked out, but they know checksetup.pl doesn't need to be run, and it's useful during development, when I'm updating or reverting a lot and want to just fix permissions quickly without having to wait for all of checksetup to run.
mkanat, why not a commandline switch on checksetup to do only permissions?
(In reply to comment #7) > mkanat, why not a commandline switch on checksetup to do only permissions? Because that's a PITA and this was a four-line-or-so script.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: