Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- logger "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- # Defining valid groups for iLife 11 installation
- #hblab=hb106computerlableft
- #hblab=hb106computerlableft
- #lgslab=lgsc01mm
- #hcslab=hcs31mm
- # Uncomment this and assign a group for testing purposes
- #COMPUTER_GROUP=hblableft
- # If COMPUTER_GROUP is empty, exit with an error code.
- if [[ -z "${DS_COMPUTER_GROUP}" ]]; then
- echo "COMPUTER_GROUP is blank. iLife will not be installed."
- exit 1
- fi
- # If machine's group in DeployStudio is the HB Left Lab, then install iLife 11
- if [ "${DS_COMPUTER_GROUP}" == "hb106computerlableft" ]; then
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- echo "Installing iLife 11 and Garageband Instruments..."
- echo "RuntimeSelectWorkflow: 05B9E390-A33E-4B4C-8111-4E685431E7DF"
- # If machine's group in DeployStudio is the HB Right Lab, then install iLife 11
- elif [ "${DS_COMPUTER_GROUP}" == "hb106computerlabright" ]; then
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- echo "Installing iLife 11 and Garageband Instruments..."
- echo "RuntimeSelectWorkflow: 05B9E390-A33E-4B4C-8111-4E685431E7DF"
- # If machine's group in DeployStudio is the LGS Lab, then install iLife 11
- elif [ "${DS_COMPUTER_GROUP}" == "lgsc01mm" ]; then
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- echo "Installing iLife 11 and Garageband Instruments..."
- echo "RuntimeSelectWorkflow: 05B9E390-A33E-4B4C-8111-4E685431E7DF"
- # If machine's group in DeployStudio is the HCS Lab, then install iLife 11
- elif [ "${DS_COMPUTER_GROUP}" == "hcs31mm" ]; then
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- echo "Installing iLife 11 and Garageband Instruments..."
- echo "RuntimeSelectWorkflow: 05B9E390-A33E-4B4C-8111-4E685431E7DF"
- # If the machine doesn't match any of these conditions, then it does not need iLife.
- else
- echo "Machine is not deployed to an area that requires iLife 11."
- fi
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement