Ticket #1076 (closed defect: fixed)
Error while copying error documents during update RC2->RC3/4
|Reported by:||JCD||Owned by:|
|Priority:||major||Milestone:||ispCP ω 1.0 - RC4|
|Component:||Backend (Engine)||Version:||ispCP ω 1.0.0 - RC3|
In RC2 the error documents' directory structure is missing the "inc" folder. During the update ispcp tries to copy files to that folder which causes an error.
The error is located in ispcp-dmn-mngr, sub dmn_change_httpd_file_data.
I fixed it by putting the following lines there (beginning in line 2377):
$rs = make_dir( "$www_dir/$dmn_name/backups", $sys_user, $httpd_gid, 0770 ); return $rs if ($rs != 0); $rs = make_dir( "$www_dir/$dmn_name/errors", $sys_user, $sys_group, 0775 ); return $rs if ($rs != 0); $rs = make_dir( "$www_dir/$dmn_name/errors/inc", $sys_user, $sys_group, 0775 ); return $rs if ($rs != 0);
Only the last dir check is necessary to make the update pass. But I think ispcp should also check the other directories for existence, as the may have been deleted.