Skip to content
Snippets Groups Projects
Commit fe963ba6 authored by Jared Hancock's avatar Jared Hancock
Browse files

packager: Package with error reporting disabled

parent 31c5bb51
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,7 @@ class Deployment extends Unpacker { ...@@ -99,7 +99,7 @@ class Deployment extends Unpacker {
$upgrade = file_exists("{$this->destination}/main.inc.php"); $upgrade = file_exists("{$this->destination}/main.inc.php");
# Get the current value of the INCLUDE_DIR before overwriting # Get the current value of the INCLUDE_DIR before overwriting
# main.inc.php # bootstrap.php
$include = ($upgrade) ? $this->get_include_dir() $include = ($upgrade) ? $this->get_include_dir()
: ($options['include'] ? $options['include'] : ($options['include'] ? $options['include']
: rtrim($this->destination, '/')."/include"); : rtrim($this->destination, '/')."/include");
......
...@@ -143,9 +143,9 @@ chdir($stage_path); ...@@ -143,9 +143,9 @@ chdir($stage_path);
shell_exec("sed -ri -e \" shell_exec("sed -ri -e \"
s/( *)define\('THIS_VERSION'.*/\\1define('THIS_VERSION', '$version');/ s/( *)define\('THIS_VERSION'.*/\\1define('THIS_VERSION', '$version');/
\" upload/bootstrap.php"); \" upload/bootstrap.php");
shell_exec("find . -name '*.inc.php' -print0 | xargs -0 sed -ri -e \" 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_errors'[^])]*);/\\1ini_set('display_errors', 0);/
s/( *)ini_set\( *'display_startup_errors'[^)]+\);/\\1ini_set('display_startup_errors', 0);/ s/\( *\)ini_set( *'display_startup_errors'[^])]*);/\\1ini_set('display_startup_errors', 0);/
\""); \"");
shell_exec("tar cjf '$pwd/osTicket-$version.tar.bz2' *"); shell_exec("tar cjf '$pwd/osTicket-$version.tar.bz2' *");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment