From fe963ba696f25a1e9e5f61a4c9be0c15aa0f95a6 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 27 Feb 2014 16:44:35 -0600 Subject: [PATCH] packager: Package with error reporting disabled --- setup/cli/modules/deploy.php | 2 +- setup/cli/package.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup/cli/modules/deploy.php b/setup/cli/modules/deploy.php index 7eb92514c..9ddde333f 100644 --- a/setup/cli/modules/deploy.php +++ b/setup/cli/modules/deploy.php @@ -99,7 +99,7 @@ class Deployment extends Unpacker { $upgrade = file_exists("{$this->destination}/main.inc.php"); # Get the current value of the INCLUDE_DIR before overwriting - # main.inc.php + # bootstrap.php $include = ($upgrade) ? $this->get_include_dir() : ($options['include'] ? $options['include'] : rtrim($this->destination, '/')."/include"); diff --git a/setup/cli/package.php b/setup/cli/package.php index e0b02cdea..10fa53764 100755 --- a/setup/cli/package.php +++ b/setup/cli/package.php @@ -143,9 +143,9 @@ chdir($stage_path); shell_exec("sed -ri -e \" s/( *)define\('THIS_VERSION'.*/\\1define('THIS_VERSION', '$version');/ \" upload/bootstrap.php"); -shell_exec("find . -name '*.inc.php' -print0 | xargs -0 sed -ri -e \" - s/( *)ini_set\( *'display_errors'[^)]+\);/\\1ini_set('display_errors', 0);/ - s/( *)ini_set\( *'display_startup_errors'[^)]+\);/\\1ini_set('display_startup_errors', 0);/ +shell_exec("find upload -name '*.php' -print0 | xargs -0 sed -i -e \" + s/\( *\)ini_set( *'display_errors'[^])]*);/\\1ini_set('display_errors', 0);/ + s/\( *\)ini_set( *'display_startup_errors'[^])]*);/\\1ini_set('display_startup_errors', 0);/ \""); shell_exec("tar cjf '$pwd/osTicket-$version.tar.bz2' *"); -- GitLab