Fix file copy source path in promote script
This commit is contained in:
@@ -133,7 +133,7 @@ $pdo = Database::getConnection();
|
|||||||
$pdo->beginTransaction();
|
$pdo->beginTransaction();
|
||||||
try {
|
try {
|
||||||
foreach ($plan as $row) {
|
foreach ($plan as $row) {
|
||||||
$source = $candidateRoot . '/' . $row['file'];
|
$source = $intakeRoot . '/' . $row['file'];
|
||||||
$destination = $projectRoot . '/backend/storage/curriculum/' . $row['storage_key'];
|
$destination = $projectRoot . '/backend/storage/curriculum/' . $row['storage_key'];
|
||||||
if (!is_dir(dirname($destination)) && !mkdir(dirname($destination), 0750, true) && !is_dir(dirname($destination))) {
|
if (!is_dir(dirname($destination)) && !mkdir(dirname($destination), 0750, true) && !is_dir(dirname($destination))) {
|
||||||
throw new RuntimeException('Unable to create staging directory.');
|
throw new RuntimeException('Unable to create staging directory.');
|
||||||
|
|||||||
Reference in New Issue
Block a user