Skip to content

Commit

Permalink
IT Support Variables and Customization
Browse files Browse the repository at this point in the history
Centralized IT Support info so that those who are fine with most of the text can insert their info without modifying lower portions of code.
  • Loading branch information
rougegoat authored Apr 23, 2023
1 parent 3f6bff7 commit 95c1be3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Setup-Your-Mac-via-Dialog.bash
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ departmentList=$( echo "${departmentListRaw}" | tr ',' '\n' | sort -f | uniq | s
#brandingIconLight="/path/to/icon/file"
#brandingIconDark="/path/to/icon/file"

# IT Support Variables - Use these if the default text is fine but you want your org's info inserted instead
supportTeamName="Help Desk"
supportTeamPhone="+1 (801) 555-1212"
supportTeamEmail="support@domain.org"
supportTeamErrorKB=", and mention [KB86753099](https://servicenow.company.com/support?id=kb_article_view&sysparm_article=KB86753099#Failures)"
supportTeamHelpKB="\n- **Knowledge Base Article:** KB0057050"

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Operating System, Computer Model Name, etc.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Expand Down Expand Up @@ -479,7 +486,7 @@ jamfBinary="/usr/local/bin/jamf"
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

welcomeTitle="Happy $( date +'%A' ), ${loggedInUserFirstname}! \nWelcome to your new ${modelName}"
welcomeMessage="Please enter your ${modelName}‘s **Asset Tag**, select your preferred **Configuration** then click **Continue** to start applying settings to your new Mac. \n\nOnce completed, the **Wait** button will be enabled and you‘ll be able to review the results before restarting your ${modelName}. \n\nIf you need assistance, please contact the Help Desk: +1 (801) 555-1212. \n\n--- \n\n#### Configurations \n- **Required:** Minimum organization apps \n- **Recommended:** Required apps and Microsoft Office \n- **Complete:** Recommended apps, Adobe Acrobat Reader and Google Chrome"
welcomeMessage="Please enter your ${modelName}‘s **Asset Tag**, select your preferred **Configuration** then click **Continue** to start applying settings to your new Mac. \n\nOnce completed, the **Wait** button will be enabled and you‘ll be able to review the results before restarting your ${modelName}. \n\nIf you need assistance, please contact the ${supportTeamName}: ${supportTeamPhone}. \n\n--- \n\n#### Configurations \n- **Required:** Minimum organization apps \n- **Recommended:** Required apps and Microsoft Office \n- **Complete:** Recommended apps, Adobe Acrobat Reader and Google Chrome"
if [[ -n "$brandingBanner" ]]; then
welcomeBannerImage="${brandingBanner}"
welcomeBannerText=""
Expand Down Expand Up @@ -632,7 +639,7 @@ else
bannerImage="https://img.freepik.com/free-photo/yellow-watercolor-paper_95678-446.jpg"
bannerText="Setting up ${loggedInUserFirstname}‘s ${modelName}"
fi
helpmessage="If you need assistance, please contact the Global Service Department: \n- **Telephone:** +1 (801) 555-1212 \n- **Email:** support@domain.org \n- **Knowledge Base Article:** KB0057050 \n\n**Computer Information:** \n- **Operating System:** ${macOSproductVersion} (${macOSbuildVersion}) \n- **Serial Number:** ${serialNumber} \n- **Dialog:** ${dialogVersion} \n- **Started:** ${timestamp}"
helpmessage="If you need assistance, please contact the Global Service Department: \n- **Telephone:** ${supportTeamPhone} \n- **Email:** ${supportTeamEmail} ${supportTeamHelpKB} \n\n**Computer Information:** \n- **Operating System:** ${macOSproductVersion} (${macOSbuildVersion}) \n- **Serial Number:** ${serialNumber} \n- **Dialog:** ${dialogVersion} \n- **Started:** ${timestamp}"
infobox="Analyzing input …" # Customize at "Update Setup Your Mac's infobox"

# Check if the custom bannerImage is available, and if not, use a alternative image
Expand Down Expand Up @@ -1485,7 +1492,7 @@ function finalise(){
updateScriptLog "Jamf Pro Policy Name Failures:"
updateScriptLog "${jamfProPolicyNameFailures}"

dialogUpdateFailure "message: A failure has been detected, ${loggedInUserFirstname}. \n\nPlease complete the following steps:\n1. Reboot and login to your ${modelName} \n2. Login to Self Service \n3. Re-run any failed policy listed below \n\nThe following failed: \n${jamfProPolicyNameFailures} \n\n\n\nIf you need assistance, please contact the Help Desk, \n+1 (801) 555-1212, and mention [KB86753099](https://servicenow.company.com/support?id=kb_article_view&sysparm_article=KB86753099#Failures). "
dialogUpdateFailure "message: A failure has been detected, ${loggedInUserFirstname}. \n\nPlease complete the following steps:\n1. Reboot and login to your ${modelName} \n2. Login to Self Service \n3. Re-run any failed policy listed below \n\nThe following failed: \n${jamfProPolicyNameFailures} \n\n\n\nIf you need assistance, please contact the ${supportTeamName}, \n${supportTeamPhone}${supportTeamErrorKB}. "
dialogUpdateFailure "icon: SF=xmark.circle.fill,weight=bold,colour1=#BB1717,colour2=#F31F1F"
dialogUpdateFailure "button1text: ${button1textCompletionActionOption}"

Expand Down Expand Up @@ -2760,7 +2767,7 @@ if [[ "${symConfiguration}" != *"Catch-all"* ]]; then

updateScriptLog "Update 'helpmessage' with Configuration: ${infoboxConfiguration}"

helpmessage="If you need assistance, please contact the Global Service Department: \n- **Telephone:** +1 (801) 555-1212 \n- **Email:** support@domain.org \n- **Knowledge Base Article:** KB0057050 \n\n**Configuration:** \n- ${infoboxConfiguration} \n\n**Computer Information:** \n- **Operating System:** ${macOSproductVersion} (${macOSbuildVersion}) \n- **Serial Number:** ${serialNumber} \n- **Dialog:** ${dialogVersion} \n- **Started:** ${timestamp}"
helpmessage="If you need assistance, please contact the Global Service Department: \n- **Telephone:** ${supportTeamPhone} \n- **Email:** ${supportTeamEmail} \n- **Knowledge Base Article:** KB0057050 \n\n**Configuration:** \n- ${infoboxConfiguration} \n\n**Computer Information:** \n- **Operating System:** ${macOSproductVersion} (${macOSbuildVersion}) \n- **Serial Number:** ${serialNumber} \n- **Dialog:** ${dialogVersion} \n- **Started:** ${timestamp}"

fi

Expand Down

0 comments on commit 95c1be3

Please sign in to comment.