Skip to content

Instantly share code, notes, and snippets.

@oNaiPs
Last active December 20, 2023 23:33
Show Gist options
  • Select an option

  • Save oNaiPs/47c7022b7875a1a51efa4e0ca6bc1718 to your computer and use it in GitHub Desktop.

Select an option

Save oNaiPs/47c7022b7875a1a51efa4e0ca6bc1718 to your computer and use it in GitHub Desktop.
Get latest Omada version from the controller
#!/bin/env bash
#
# Downloads latest omada update package.
# First, ensure to check for updates from the UI so that the download URL
# is available in the database
#
URL=$(mongo omada --port 27217 --quiet --eval "print(db.systemsetting.findOne({}, { 'swc_firmware.fw_url': 1, _id: 0 }).swc_firmware.fw_url)")
curl -O "$URL"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment