re-fix bug 76154: permissions weren't being set correctly on the .htaccess files…

re-fix bug 76154: permissions weren't being set correctly on the .htaccess files when checksetup.pl was run again. Also adding .htaccess to .cvsignore so it won't show up as ? in cvs diffs and updates. Patch by Dave Miller <justdave@syndicomm.com> r= jake@acutex.net
parent b1a6027d
.htaccess
graphs graphs
data data
localconfig localconfig
......
...@@ -708,6 +708,9 @@ if ($my_webservergroup) { ...@@ -708,6 +708,9 @@ if ($my_webservergroup) {
# caller's uid. Maybe there should be a $bugzillauid, and call with that # caller's uid. Maybe there should be a $bugzillauid, and call with that
# userid. # userid.
chown $<, $webservergid, glob('*'); chown $<, $webservergid, glob('*');
if (-e ".htaccess") { chown $<, $webservergid, ".htaccess" } # glob('*') doesn't catch dotfiles
if (-e "data/.htaccess") { chown $<, $webservergid, "data/.htaccess" }
if (-e "data/webdot/.htaccess") { chown $<, $webservergid, "data/webdot/.htaccess" }
fixPerms('*',027); fixPerms('*',027);
chmod 0644, 'globals.pl'; chmod 0644, 'globals.pl';
chmod 0644, 'RelationSet.pm'; chmod 0644, 'RelationSet.pm';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment