Commit 421b97de authored by terry%mozilla.org's avatar terry%mozilla.org

Patch by holger@holger.om.org (Holger Schurig) -- get the permissions right on…

Patch by holger@holger.om.org (Holger Schurig) -- get the permissions right on the shadow directory.
parent 8790dbf3
...@@ -383,6 +383,7 @@ unlink "data/versioncache"; ...@@ -383,6 +383,7 @@ unlink "data/versioncache";
# #
if ($webservergroup) { if ($webservergroup) {
mkdir 'shadow', 0770 unless -d 'shadow';
# Funny! getgrname returns the GID if fed with NAME ... # Funny! getgrname returns the GID if fed with NAME ...
my $webservergid = getgrnam($webservergroup); my $webservergid = getgrnam($webservergroup);
chown 0, $webservergid, glob('*'); chown 0, $webservergid, glob('*');
...@@ -394,7 +395,7 @@ if ($webservergroup) { ...@@ -394,7 +395,7 @@ if ($webservergroup) {
'collectstats.pl', 'collectstats.pl',
'checksetup.pl'; 'checksetup.pl';
chmod 0770, 'data'; chmod 0770, 'data', 'shadow';
chmod 0666, glob('data/*'); chmod 0666, glob('data/*');
} }
......
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