Skip to content

Instantly share code, notes, and snippets.

@AndrewWCarson
Last active June 27, 2022 22:39
Show Gist options
  • Select an option

  • Save AndrewWCarson/e666f5ffa75c14063c62533b66ebb231 to your computer and use it in GitHub Desktop.

Select an option

Save AndrewWCarson/e666f5ffa75c14063c62533b66ebb231 to your computer and use it in GitHub Desktop.
Addigy - "Silently" install backblaze
# Mount the DMG. Make sure you change the path to wherever your Custom Software says your file will be downloaded to.
hdiutil attach "/Library/Addigy/ansible/packages/Backblaze (1.0.0)/install_backblaze.dmg"
# Install Backblaze using their script.
sudo /Volumes/Backblaze\ Installer/Backblaze\ Installer.app/Contents/MacOS/bzinstall_mate -nogui bzdiy -signin user@corp.com 'password-goes-here'
# Unmount the DMG. The DMG will appear in Finder as a mounted drive until this command runs.
hdiutil detach /Volumes/Backblaze\ Installer
@vicorly
Copy link
Copy Markdown

vicorly commented Jun 23, 2022

Didn't work for me. Got the BZ:1000 error

@AndrewWCarson
Copy link
Copy Markdown
Author

@vicorly seems like that is a generic error from the Backblaze installer.

First thing I'd try is making sure it's running with root/admin permissions per:

BZERROR:1000 - This is a general error code. One possible reason is that the Backblaze installer doesn't have root permissions and is failing. Please see the install log file for more details.

https://help.backblaze.com/hc/en-us/articles/115002603173-Mac-Silent-Deployment

I used this simple script as an example some years ago so I'm not sure if this is still how Backblaze installers work.

@vicorly
Copy link
Copy Markdown

vicorly commented Jun 27, 2022 via email

@AndrewWCarson
Copy link
Copy Markdown
Author

Cool. What do you have in for the email/password for authenticating to Backblaze here?

-signin user@corp.com 'password-goes-here'

I don't think Addigy can inject those variables into a Smart Software. I'm fairly sure I used to hardcode the email/password for one-off deployments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment