Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- # Defining valid groups for various background installations
- #hblabl=hb106computerlableft
- #hblabr=hb106computerlabright
- #lgslab=lgsc01mm
- #hcslab=hcs31mm
- #hbtlc1=hbtlcdesktopsfloor1
- #lgstlcim=lgslibraryim
- #lgstlcmm=lgslibrarymm
- #hcstlc=hcslibim
- # Uncomment this and assign a group for testing purposes
- #COMPUTER_GROUP=testgroupdoesnotexist
- # If COMPUTER_GROUP is empty, exit with an error code.
- if [[ -z "${DS_COMPUTER_GROUP}" ]]; then
- echo "COMPUTER_GROUP is blank. No background image will be installed."
- exit 1
- fi
- # If machine's group in DeployStudio is the HB Left, then install Har-Bur Computer Lab background image
- if [ "${DS_COMPUTER_GROUP}" == "hb106computerlableft" ]; then
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- echo "Installing HB Lab background image…"
- echo "RuntimeSelectWorkflow: A9920922-F8F7-4CF2-8BDB-4243303C8C3F"
- # If machine's group in DeployStudio is the HB Right, then install Har-Bur Computer Lab background image
- elif [ "${DS_COMPUTER_GROUP}" == "hb106computerlabright" ]; then
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- echo "Installing HB Lab background image…"
- echo "RuntimeSelectWorkflow: A9920922-F8F7-4CF2-8BDB-4243303C8C3F"
- # If machine's group in DeployStudio is the LGS Lab, then install then install Lake Garda Computer Lab background image
- elif [ "${DS_COMPUTER_GROUP}" == "lgsc01mm" ]; then
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- echo "Installing LGS Lab background image…"
- echo "RuntimeSelectWorkflow: REPLACEME"
- # If machine's group in DeployStudio is the HCS Lab, then install Harwinton Consolidated Computer Lab background image
- elif [ "${DS_COMPUTER_GROUP}" == "hcs31mm" ]; then
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- echo "Installing HCS Lab background image…"
- echo "RuntimeSelectWorkflow: REPLACEME"
- # If machine's group in DeployStudio is TLC 1st Floor, then install The HB Learning Center background image
- elif [ "${DS_COMPUTER_GROUP}" == "hbtlcdesktopsfloor1" ]; then
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- echo "Installing HB TLC background image…"
- echo "RuntimeSelectWorkflow: C8CB0BC3-8CFD-4937-B3DE-3E91F71CF5BD"
- # If machine's group in DeployStudio is LGS Library, then install The LGS Learning Center background image
- elif [ "${DS_COMPUTER_GROUP}" == "${lgstlcim}" ]; then
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- echo "Installing LGS TLC background image…"
- echo "RuntimeSelectWorkflow: REPLACEME"
- # If machine's group in DeployStudio is LGS Library, then install The LGS Learning Center background image
- elif [ "${DS_COMPUTER_GROUP}" == "${lgstlcmm}" ]; then
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- echo "Installing LGS TLC background image…"
- echo "RuntimeSelectWorkflow: REPLACEME"
- # If machine's group in DeployStudio is HCS Library, then install The HCS Learning Center background image
- elif [ "${DS_COMPUTER_GROUP}" == "${hcstlc}" ]; then
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- echo "Installing HCS TLC background image…"
- echo "RuntimeSelectWorkflow: REPLACEME"
- # 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 a custom background image."
- echo "Detected ${DS_COMPUTER_GROUP} as DeployStudio Group"
- echo "Installing Generic RSD10 background image…"
- echo "RuntimeSelectWorkflow: ABE12FB2-3762-4916-8178-B9C51DBDEDB5"
- fi
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement