Last active
December 20, 2023 23:33
-
-
Save oNaiPs/47c7022b7875a1a51efa4e0ca6bc1718 to your computer and use it in GitHub Desktop.
Get latest Omada version from the controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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