Skip to content

Commit 77a0204

Browse files
Merge pull request #109 from sugarcrm/issue-108
Issue 108
2 parents 0359b2e + e360996 commit 77a0204

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

package/pack.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,9 @@
435435
'ext4' => NULL,
436436
),
437437
),
438+
'post_execute' => array(
439+
'cleanup.php',
440+
),
438441
);
439442

440443
/*

package/src/cleanup.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
/**
3+
* Copyright 2018 SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license.
4+
*/
5+
if (! defined('sugarEntry') || ! sugarEntry) die('Not A Valid Entry Point');
6+
require_once("modules/Administration/QuickRepairAndRebuild.php");
7+
$randc = new RepairAndClear();
8+
9+
// Clear the theme cache so the Prof M logo will be displayed on the Login screen and the left corner of the footer
10+
$randc->clearThemeCache();

scripts/GetCopyOfSugar.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,12 @@ getHiddenFormFieldValue(){
137137
# This is a hack specifically for Travis CI. Travis CI outputs a string like the following in the middle
138138
# of the SAML Response:
139139
#
140-
# 100 12223 0 12223 0 0 16084 0 --:--:-- --:--:-- --:--:-- 16104
140+
# 0 0 0 12608 0 0 6973 0 --:--:-- 0:00:01 --:--:-- 6973
141+
# 0 0 0 12608 0 0 6973 0 --:--:-- 0:00:01 --:--:-- 0
141142
# * Connection #0 to host auth.sugarcrm.com left intact
142143
#
143144
# This Regex Token pulls this junk out of the SAML Response
144-
newLineRegexToken="(.*)[[:space:]]+[[:digit:]][[:digit:]][[:digit:]][[:space:]].*intact[[:space:]]*(.*)"
145+
newLineRegexToken="([^[:space:]]*).*intact[[:space:]]*(.*)"
145146
if [[ $1 == 'SAMLResponse' && $value =~ $newLineRegexToken ]]
146147
then
147148
value="${BASH_REMATCH[1]}${BASH_REMATCH[2]}"

0 commit comments

Comments
 (0)