@@ -514,6 +514,10 @@ public function configure_jailkit() {
514514 copy ('tpl/ ' .$ jk_init .'.master ' , $ config_dir .'/ ' .$ jk_init );
515515 copy ('tpl/ ' .$ jk_chrootsh .'.master ' , $ config_dir .'/ ' .$ jk_chrootsh );
516516 }
517+
518+ //* help jailkit fo find its ini files
519+ if (!is_link ('/usr/jk_socketd.ini ' )) exec ('ln -s /etc/jailkit/jk_socketd.ini /usr/jk_socketd.ini ' );
520+ if (!is_link ('/usr/jk_init.ini ' )) exec ('ln -s /etc/jailkit/jk_init.ini /usr/jk_init.ini ' );
517521
518522 }
519523
@@ -903,7 +907,7 @@ public function configure_dovecot() {
903907 if (is_file ($ config_dir .'/ ' .$ configfile )) {
904908 copy ($ config_dir .'/ ' .$ configfile , $ config_dir .'/ ' .$ configfile .'~ ' );
905909 }
906- chmod ($ config_dir .'/ ' .$ configfile .'~ ' , 0400 );
910+ if ( is_file ( $ config_dir . ' / ' . $ configfile . ' ~ ' )) chmod ($ config_dir .'/ ' .$ configfile .'~ ' , 0400 );
907911 $ content = rf ('tpl/debian_dovecot-sql.conf.master ' );
908912 $ content = str_replace ('{mysql_server_ispconfig_user} ' ,$ conf ['mysql ' ]['ispconfig_user ' ],$ content );
909913 $ content = str_replace ('{mysql_server_ispconfig_password} ' ,$ conf ['mysql ' ]['ispconfig_password ' ], $ content );
@@ -1758,6 +1762,12 @@ public function install_ispconfig() {
17581762 chown ($ install_dir .'/server/lib/mysql_clientdb.conf ' , 'root ' );
17591763 chgrp ($ install_dir .'/server/lib/mysql_clientdb.conf ' , 'root ' );
17601764 }
1765+
1766+ if (is_file ($ install_dir .'/interface/invoices ' )) {
1767+ chmod ($ install_dir .'/interface/invoices ' , 0770 );
1768+ chown ($ install_dir .'/interface/invoices ' , 'ispconfig ' );
1769+ chgrp ($ install_dir .'/interface/invoices ' , 'ispconfig ' );
1770+ }
17611771
17621772 // TODO: FIXME: add the www-data user to the ispconfig group. This is just for testing
17631773 // and must be fixed as this will allow the apache user to read the ispconfig files.
@@ -1952,7 +1962,7 @@ public function configure_dbserver() {
19521962 wf ($ install_dir .'/server/lib/mysql_clientdb.conf ' ,$ content );
19531963 chmod ($ install_dir .'/server/lib/mysql_clientdb.conf ' , 0600 );
19541964 chown ($ install_dir .'/server/lib/mysql_clientdb.conf ' , 'root ' );
1955- chgrp ($ install_dir .'/server/lib/mysql_clientdb.conf ' , 'root ' );
1965+ chgrp ($ install_dir .'/server/lib/mysql_clientdb.conf ' , 'root ' );
19561966
19571967 }
19581968
0 commit comments