From 5c5dde48de8c1d9dd667c57796366241ee3b7b16 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 17 Feb 2019 10:51:22 +0100 Subject: [PATCH] Ensured install and update script change to the project dir --- bin/install | 4 ++++ bin/update | 4 ++++ build.sh | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/install b/bin/install index e3502509..5918cac0 100755 --- a/bin/install +++ b/bin/install @@ -4,5 +4,9 @@ declare(strict_types=1); namespace Shlinkio\Shlink; +use function chdir; +use function dirname; + +chdir(dirname(__DIR__)); $run = require __DIR__ . '/../vendor/shlinkio/shlink-installer/bin/run.php'; $run(false); diff --git a/bin/update b/bin/update index 3be9bf17..5dd32e72 100755 --- a/bin/update +++ b/bin/update @@ -4,5 +4,9 @@ declare(strict_types=1); namespace Shlinkio\Shlink; +use function chdir; +use function dirname; + +chdir(dirname(__DIR__)); $run = require __DIR__ . '/../vendor/shlinkio/shlink-installer/bin/run.php'; $run(true); diff --git a/build.sh b/build.sh index 99c82087..ee7839c9 100755 --- a/build.sh +++ b/build.sh @@ -41,7 +41,7 @@ cd "${builtcontent}" # Install dependencies echo "Installing dependencies with $composerBin..." ${composerBin} self-update -${composerBin} install --no-dev --optimize-autoloader --no-progress --no-interaction +${composerBin} install --no-dev --optimize-autoloader --apcu-autoloader --no-progress --no-interaction # Delete development files echo 'Deleting dev files...'