Skip to content

Instantly share code, notes, and snippets.

View cdoggyd's full-sized avatar

Clint Davis cdoggyd

  • Gray Loon
  • Indiana
View GitHub Profile
@cdoggyd
cdoggyd / gist:fb4da04d1cee6eb005e58ef7ee4229c4
Created May 10, 2022 20:00
Backblaze_silentinstall.sh
#!/bin/bash
# Reference: https://help.backblaze.com/hc/en-us/articles/115002603173-Backblaze-Mass-Silent-Install-with-Jamf-Mac-
# The following parameters are pulled directly from the "Parameter Values" section of your Backblaze deployment policy.
# Please make sure they are filled out respectively prior to your push
username="%UserId%"
groupid="FILL IN YOUR OWN"
grouptoken="FILL IN YOUR OWN"
email="%Email%"
#!/bin/bash
while read site; do
echo -e "Started updating ${site}"
terminus upstream:cc $site
terminus upstream:updates:apply --accept-upstream $site.dev
terminus env:deploy --sync-content --note="Patching PSA-2018-003" --cc -- $site.test
terminus env:deploy --note="Patching PSA-2018-003" --cc -- $site.live
echo -e "Finished updating ${site}\n\n\n"
done <sites.txt