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

Turn off display_errors for releases

parent 7aa4e6f8
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,11 @@ chdir($stage_path);
// Replace THIS_VERSION in the stage/ folder
shell_exec("grep -rl \"define('THIS_VERSION'\" * | xargs sed -ri -e \"s/( *).*THIS_VERSION.*/\\1define('THIS_VERSION', '$version');/\"");
shell_exec("find . -name '*.php' -print0 | xargs -0 sed -ri -e \"
s/( *).*THIS_VERSION.*/\\1define('THIS_VERSION', '$version');/
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' *");
shell_exec("zip -r '$pwd/osTicket-$version.zip' *");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment