Calling &protect_rails_directory($d, $opts); locks up install script

SInce 3.703 on FreeBSD (I don't have access to other systems, so I cannot say if it is a global bug) Virtualmin locks up when installing RoR (or derived scritps from myself). I mean default installation of RoR script.

I found that problem is in calling &protect_rails_directory($d, $opts); - when commented out script will pass and install RoR.

Thanks.

Status: 
Closed (fixed)

Comments

Yes, I just noticed this bug myself a couple of days ago.

The correct fix is to edit ruby-lib.pl under the virtual-server directory, and change line 384 from :

&set_permissions($d, 0755, "$opts->{'dir'}/.htaccess");

to :

&set_permissions_as_domain_user($d, 0755, "$opts->{'dir'}/.htaccess");

This fix will be in the next Virtualmin release..

Automatically closed -- issue fixed for 2 weeks with no activity.