tbrehm
2009-07-13 a4f044fe21452b1a9e2f30863393fa843f0d9c3b
Fixed: FS#813 - umask in suphp.conf should be 0022
3 files modified
3 ■■■■■ changed files
install/dist/lib/fedora.lib.php 1 ●●●● patch | view | raw | blame | history
install/dist/lib/opensuse.lib.php 1 ●●●● patch | view | raw | blame | history
install/lib/installer_base.lib.php 1 ●●●● patch | view | raw | blame | history
install/dist/lib/fedora.lib.php
@@ -409,6 +409,7 @@
        if(is_file('/etc/suphp.conf')) {
            //replaceLine('/etc/suphp.conf','php=php:/usr/bin','x-httpd-suphp=php:/usr/bin/php-cgi',0);
            replaceLine('/etc/suphp.conf','docroot=','docroot=/var/www',0);
            replaceLine('/etc/suphp.conf','umask=0077','umask=0022',0);
        }
        
        //* Create the logging directory for the vhost logfiles
install/dist/lib/opensuse.lib.php
@@ -432,6 +432,7 @@
        //if(is_file('/etc/suphp.conf')) {
        replaceLine('/etc/suphp.conf','php=php','x-httpd-suphp=php:/srv/www/cgi-bin/php5',0,0);
        replaceLine('/etc/suphp.conf','docroot=','docroot=/srv/www',0,0);
        replaceLine('/etc/suphp.conf','umask=0077','umask=0022',0);
        //}
        
        // Sites enabled and avaulable dirs
install/lib/installer_base.lib.php
@@ -778,6 +778,7 @@
        if(is_file('/etc/suphp/suphp.conf')) {
            replaceLine('/etc/suphp/suphp.conf','php=php:/usr/bin','x-httpd-suphp=php:/usr/bin/php-cgi',0);
            //replaceLine('/etc/suphp/suphp.conf','docroot=','docroot=/var/clients',0);
            replaceLine('/etc/suphp/suphp.conf','umask=0077','umask=0022',0);
        }
        
        if(is_file('/etc/apache2/sites-enabled/000-default')) {