-
-
Save rtrouton/dda1b2f662f03c4da6da to your computer and use it in GitHub Desktop.
This script creates the directories needed for Office 2016 Word, Excel and PowerPoint templates and assigns those directories the following permissions: root:admin drwxrwxr-x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script checks for and (if needed) creates the directories for Office 2016 templates for Word, PowerPoint and Excel | |
if [[ ! -e "/Library/Application Support/Microsoft/Office365/User Content.localized/Templates.localized" ]]; then | |
/bin/echo "Necessary support directories for Office 2016's Word, PowerPoint and Excel templates not found." | |
/bin/echo "Creating necessary support directories for Office 2016's Word, PowerPoint and Excel templates." | |
/bin/mkdir -p "/Library/Application Support/Microsoft/Office365/User Content.localized/Templates.localized" | |
/usr/sbin/chown root:admin "/Library/Application Support/Microsoft" && /bin/chmod 775 "/Library/Application Support/Microsoft" | |
/usr/sbin/chown root:admin "/Library/Application Support/Microsoft/Office365" && /bin/chmod 775 "/Library/Application Support/Microsoft/Office365" | |
/usr/sbin/chown root:admin "/Library/Application Support/Microsoft/Office365/User Content.localized" && /bin/chmod 775 "/Library/Application Support/Microsoft/Office365/User Content.localized" | |
/usr/sbin/chown root:admin "/Library/Application Support/Microsoft/Office365/User Content.localized/Templates.localized" && /bin/chmod 775 "/Library/Application Support/Microsoft/Office365/User Content.localized/Templates.localized" | |
/bin/echo "The necessary support directories for Office 2016's Word, PowerPoint and Excel templates have been created." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment