Permalink
Browse files

Quick fix for prod breakage

  • Loading branch information...
1 parent 885ce58 commit 6f6368496f46d715d45521f8a6d368f94881cacd @autarch autarch committed Mar 16, 2012
Showing with 3 additions and 12 deletions.
  1. +3 −12 lib/VegGuide/CachedHierarchy.pm
@@ -65,19 +65,10 @@ sub _touch_file {
}
}
-# Copied from Mason's ApacheHandler
+# XXX - quick hack fix - should revisit at some point
sub _get_uid_gid {
-
- # Apache2 lacks $s->uid.
- # Workaround by searching the config tree.
- require Apache2::Directive;
-
- my $conftree = Apache2::Directive::conftree();
- my $user = $conftree->lookup('User');
- my $group = $conftree->lookup('Group');
-
- $user =~ s/^["'](.*)["']$/$1/;
- $group =~ s/^["'](.*)["']$/$1/;
+ my $user = 'www-data';
+ my $group = 'www-data';
my $uid = $user ? getpwnam($user) : $>;
my $gid = $group ? getgrnam($group) : $);

0 comments on commit 6f63684

Please sign in to comment.