From fd75eddf24886640991f30ce0bc3d58d8e9ce736 Mon Sep 17 00:00:00 2001
From: JediKev <kevin@enhancesoft.com>
Date: Mon, 9 Jul 2018 14:23:21 -0500
Subject: [PATCH] issue: CLI Deploy Missing Bootstrap
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This addresses issue 4322 where deploying via CLI is missing
`bootstrap.php`. This is due to the `get_include_dir()` function that
tries to include a file from the destination which doesn’t exist yet,
causing a fatal error. This updates the function to use `$this->source`
instead of `$this->destination` to correctly find and include
`bootstrap.php`.
---
 include/cli/modules/unpack.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/cli/modules/unpack.php b/include/cli/modules/unpack.php
index 75fa1090f..a15628884 100644
--- a/include/cli/modules/unpack.php
+++ b/include/cli/modules/unpack.php
@@ -210,7 +210,7 @@ class Unpacker extends Module {
         ), $pipes);
 
         fwrite($pipes[0], "<?php
-        include '{$this->destination}/bootstrap.php';
+        include '{$this->source}/bootstrap.php';
         print INCLUDE_DIR;
         ");
         fclose($pipes[0]);
-- 
GitLab