#!/bin/bash ################################################################################################### # Script Name: license_Mathematica.sh # By: Zack Thompson / Created: 1/10/2018 # Version: 1.1 / Updated: 1/29/2018 / By: ZT # # Description: This script applies the license for Mathematica applications. # ################################################################################################### /usr/bin/logger -s "***** License Mathematica process: START *****" ################################################## # Define Variables licenseDirectory="/Library/Mathematica/Licensing" licenseFile="${licenseDirectory}/mathpass" ################################################## # Create the license file. if [[ ! -d "${licenseDirectory}" ]]; then /usr/bin/logger -s "Creating License Directory..." /bin/mkdir -p "${licenseDirectory}" fi /usr/bin/logger -s "Creating license file..." /bin/cat > "${licenseFile}" <