@@ -109,10 +109,13 @@ brandingIconDark="https://cdn-icons-png.flaticon.com/512/740/740878.png"
109
109
supportTeamName=" Support Team Name"
110
110
supportTeamPhone=" +1 (801) 555-1212"
111
111
supportTeamEmail=
" [email protected] "
112
+ supportTeamChat=" chat.support.domain.com"
113
+ supportTeamChatHyperlink=" [${supportTeamChat} ](https://${supportTeamChat} )"
112
114
supportTeamWebsite=" support.domain.com"
113
115
supportTeamHyperlink=" [${supportTeamWebsite} ](https://${supportTeamWebsite} )"
114
116
supportKB=" KB8675309"
115
117
supportTeamErrorKB=" [${supportKB} ](https://servicenow.company.com/support?id=kb_article_view&sysparm_article=${supportKB} #Failures)"
118
+ supportTeamHours=" Monday - Friday 8:00am-5:00pm"
116
119
117
120
# Disable the "Continue" button in the User Input "Welcome" dialog until Dynamic Download Estimates have complete [ true | false ] (thanks, @Eltord!)
118
121
lockContinueBeforeEstimations=" false"
@@ -354,15 +357,23 @@ function finalise(){
354
357
fi
355
358
356
359
if [[ -n " ${supportTeamEmail} " ]]; then
357
- supportContactMessage+=" - **Email:** $supportTeamEmail \n"
360
+ supportContactMessage+=" - **Email:** ${supportTeamEmail} \n"
361
+ fi
362
+
363
+ if [[ -n " ${supportTeamChat} " ]]; then
364
+ supportContactMessage+=" - **Online Chat:** ${supportTeamChatHyperlink} \n"
358
365
fi
359
366
360
367
if [[ -n " ${supportTeamWebsite} " ]]; then
361
368
supportContactMessage+=" - **Web**: ${supportTeamHyperlink} \n"
362
369
fi
363
370
364
371
if [[ -n " ${supportKB} " ]]; then
365
- supportContactMessage+=" - **Knowledge Base Article:** $supportTeamErrorKB \n"
372
+ supportContactMessage+=" - **Knowledge Base Article:** ${supportTeamErrorKB} \n"
373
+ fi
374
+
375
+ if [[ -n " ${supportTeamHours} " ]]; then
376
+ supportContactMessage+=" - **Support Hours:** ${supportTeamHours} \n"
366
377
fi
367
378
368
379
fi
@@ -1702,7 +1713,7 @@ if [[ -z $supportTeamName ]]; then
1702
1713
exit 1
1703
1714
fi
1704
1715
1705
- if [[ -z $supportTeamPhone && -z $supportTeamEmail && -z $supportKB ]]; then
1716
+ if [[ -z $supportTeamPhone && -z $supportTeamEmail && -z $supportTeamChat && -z $ supportKB ]]; then
1706
1717
preFlight " At least ONE 'supportTeam' variable must be populated to proceed; exiting"
1707
1718
exit 1
1708
1719
fi
@@ -1795,6 +1806,10 @@ if [[ -n "${supportTeamName}" ]]; then
1795
1806
if [[ -n " ${supportTeamEmail} " ]]; then
1796
1807
welcomeMessage+=" - **Email**: ${supportTeamEmail} \n"
1797
1808
fi
1809
+
1810
+ if [[ -n " ${supportTeamChat} " ]]; then
1811
+ welcomeMessage+=" - **Online Chat:** ${supportTeamChatHyperlink} \n"
1812
+ fi
1798
1813
1799
1814
if [[ -n " ${supportTeamWebsite} " ]]; then
1800
1815
welcomeMessage+=" - **Web**: ${supportTeamHyperlink} \n"
@@ -1804,6 +1819,10 @@ if [[ -n "${supportTeamName}" ]]; then
1804
1819
welcomeMessage+=" - **Knowledge Base Article:** ${supportTeamErrorKB} \n"
1805
1820
fi
1806
1821
1822
+ if [[ -n " ${supportTeamHours} " ]]; then
1823
+ welcomeMessage+=" - **Support Hours:** ${supportTeamHours} \n"
1824
+ fi
1825
+
1807
1826
fi
1808
1827
1809
1828
welcomeMessage+=" \n\n---"
@@ -2040,21 +2059,29 @@ if [ -n "$supportTeamName" ]; then
2040
2059
helpmessage+=" If you need assistance, please contact: \n\n**${supportTeamName} ** \n"
2041
2060
fi
2042
2061
2043
- if [ -n " $supportTeamPhone " ]; then
2062
+ if [ -n " ${ supportTeamPhone} " ]; then
2044
2063
helpmessage+=" - **Telephone:** ${supportTeamPhone} \n"
2045
2064
fi
2046
2065
2047
- if [ -n " $supportTeamEmail " ]; then
2066
+ if [ -n " ${ supportTeamEmail} " ]; then
2048
2067
helpmessage+=" - **Email:** ${supportTeamEmail} \n"
2049
2068
fi
2050
-
2051
- if [ -n " $supportTeamWebsite " ]; then
2052
- helpmessage+=" - **Web**: ${supportTeamHyperlink } \n"
2069
+
2070
+ if [ -n " ${supportTeamChat} " ]; then
2071
+ helpmessage+=" - **Online Chat:** ${supportTeamChatHyperlink } \n"
2053
2072
fi
2054
2073
2055
- if [ -n " $supportKB " ]; then
2074
+ if [ -n " ${supportTeamWebsite} " ]; then
2075
+ helpmessage+=" - **Web**: ${supportTeamHyperlink} \n"
2076
+ fi
2077
+
2078
+ if [ -n " ${supportKB} " ]; then
2056
2079
helpmessage+=" - **Knowledge Base Article:** ${supportTeamErrorKB} \n"
2057
2080
fi
2081
+
2082
+ if [ -n " ${supportTeamHours} " ]; then
2083
+ helpmessage+=" - **Support Hours:** ${supportTeamHours} \n"
2084
+ fi
2058
2085
2059
2086
helpmessage+=" \n**Computer Information:** \n"
2060
2087
helpmessage+=" - **Operating System:** ${macOSproductVersion} (${macOSbuildVersion} ) \n"
@@ -3323,6 +3350,10 @@ if [[ "${symConfiguration}" != *"Catch-all"* ]]; then
3323
3350
if [[ -n " ${supportTeamEmail} " ]]; then
3324
3351
helpmessage+=" - **Email:** ${supportTeamEmail} \n"
3325
3352
fi
3353
+
3354
+ if [[ -n " ${supportTeamChat} " ]]; then
3355
+ helpmessage+=" - **Online Chat:** ${supportTeamChatHyperlink} \n"
3356
+ fi
3326
3357
3327
3358
if [[ -n " ${supportTeamWebsite} " ]]; then
3328
3359
helpmessage+=" - **Web**: ${supportTeamHyperlink} \n"
@@ -3331,6 +3362,10 @@ if [[ "${symConfiguration}" != *"Catch-all"* ]]; then
3331
3362
if [[ -n " ${supportKB} " ]]; then
3332
3363
helpmessage+=" - **Knowledge Base Article:** ${supportTeamErrorKB} \n"
3333
3364
fi
3365
+
3366
+ if [[ -n " ${supportTeamHours} " ]]; then
3367
+ helpmessage+=" - **Support Hours:** ${supportTeamHours} \n"
3368
+ fi
3334
3369
3335
3370
fi
3336
3371
0 commit comments