Advertisement
coffeehedake

ilife_selector.sh

Jul 22nd, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.00 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  4. logger "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  5.  
  6.  
  7. # Defining valid groups for iLife 11 installation
  8.  
  9. #hblab=hb106computerlableft
  10. #hblab=hb106computerlableft
  11. #lgslab=lgsc01mm
  12. #hcslab=hcs31mm
  13.  
  14. # Uncomment this and assign a group for testing purposes
  15. #COMPUTER_GROUP=hblableft
  16.  
  17. # If COMPUTER_GROUP is empty, exit with an error code.  
  18. if [[ -z "${DS_COMPUTER_GROUP}" ]]; then
  19.     echo "COMPUTER_GROUP is blank.  iLife will not be installed."
  20.     exit 1
  21. fi
  22.  
  23. # If machine's group in DeployStudio is the HB Left Lab, then install iLife 11
  24. if [ "${DS_COMPUTER_GROUP}" == "hb106computerlableft" ]; then
  25.     echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  26.     echo "Installing iLife 11 and Garageband Instruments..."
  27.     echo "RuntimeSelectWorkflow: 05B9E390-A33E-4B4C-8111-4E685431E7DF"
  28.  
  29.  
  30. # If machine's group in DeployStudio is the HB Right Lab, then install iLife 11
  31. elif [ "${DS_COMPUTER_GROUP}" == "hb106computerlabright" ]; then
  32.     echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  33.     echo "Installing iLife 11 and Garageband Instruments..."
  34.     echo "RuntimeSelectWorkflow: 05B9E390-A33E-4B4C-8111-4E685431E7DF"
  35.  
  36.  
  37. # If machine's group in DeployStudio is the LGS Lab, then install iLife 11
  38. elif [ "${DS_COMPUTER_GROUP}" == "lgsc01mm" ]; then
  39.     echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  40.     echo "Installing iLife 11 and Garageband Instruments..."
  41.     echo "RuntimeSelectWorkflow: 05B9E390-A33E-4B4C-8111-4E685431E7DF"
  42.  
  43.  
  44. # If machine's group in DeployStudio is the HCS Lab, then install iLife 11
  45. elif [ "${DS_COMPUTER_GROUP}" == "hcs31mm" ]; then
  46.     echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
  47.     echo "Installing iLife 11 and Garageband Instruments..."
  48.     echo "RuntimeSelectWorkflow: 05B9E390-A33E-4B4C-8111-4E685431E7DF" 
  49.  
  50. # If the machine doesn't match any of these conditions, then it does not need iLife.
  51. else
  52.     echo "Machine is not deployed to an area that requires iLife 11."
  53. fi
  54.  
  55. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement