tbrehm
2011-11-15 c749e5226f585c700dd2a9572fbc7e7a1b62166b
- Moved some code.
1 files modified
14 ■■■■ changed files
install/lib/installer_base.lib.php 14 ●●●● patch | view | raw | blame | history
install/lib/installer_base.lib.php
@@ -1747,6 +1747,12 @@
            chown($install_dir.'/server/lib/mysql_clientdb.conf', 'root');
            chgrp($install_dir.'/server/lib/mysql_clientdb.conf', 'root');
        }
        if(is_file($install_dir.'/interface/invoices')) {
            chmod($install_dir.'/interface/invoices', 0770);
            chown($install_dir.'/interface/invoices', 'ispconfig');
            chgrp($install_dir.'/interface/invoices', 'ispconfig');
        }
        // TODO: FIXME: add the www-data user to the ispconfig group. This is just for testing
        // and must be fixed as this will allow the apache user to read the ispconfig files.
@@ -1941,13 +1947,7 @@
        wf($install_dir.'/server/lib/mysql_clientdb.conf',$content);
        chmod($install_dir.'/server/lib/mysql_clientdb.conf', 0600);
        chown($install_dir.'/server/lib/mysql_clientdb.conf', 'root');
        chgrp($install_dir.'/server/lib/mysql_clientdb.conf', 'root');
        if(is_file($install_dir.'/interface/invoices')) {
            chmod($install_dir.'/interface/invoices', 0770);
            chown($install_dir.'/interface/invoices', 'ispconfig');
            chgrp($install_dir.'/interface/invoices', 'ispconfig');
        }
        chgrp($install_dir.'/server/lib/mysql_clientdb.conf', 'root');
    }