Skip to content

Commit d28bb9f

Browse files
authored
Fix maintenance status check (#2748)
This command fails when it is a deployment to a newly provisioned server since the current_path does not exist
1 parent c893ca5 commit d28bb9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipe/magento2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
set('maintenance_mode_status_active', function () {
6767
// detect maintenance mode active
68-
$maintenanceModeStatusOutput = run("{{bin/php}} {{current_path}}/bin/magento maintenance:status");
68+
$maintenanceModeStatusOutput = run("{{bin/php}} {{release_or_current_path}}/bin/magento maintenance:status");
6969
return strpos($maintenanceModeStatusOutput, MAINTENANCE_MODE_ACTIVE_OUTPUT_MSG) !== false;
7070
});
7171

0 commit comments

Comments
 (0)