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/bash | |
| FLIGHT_ROOT="/opt/flight" | |
| export PATH="$PATH:$FLIGHT_ROOT/bin" | |
| VERSION=${VERSION:-type/openflight-web-access} | |
| mv /opt/flight/usr/lib/profile/types /opt/flight/usr/lib/profile/types_orig | |
| git clone https://github.com/openflighthpc/flight-profile-types /opt/flight/usr/lib/profile/types | |
| cd /opt/flight/usr/lib/profile/types | |
| git checkout $VERSION |
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
| # | |
| # Run this setup script from a machine with flight-profile installed with: | |
| # curl -L RAW_URL |/bin/bash | |
| # | |
| # | |
| # Vars | |
| # | |
| PROF_ROOT="/opt/flight/usr/lib/profile/types/" |
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
| # | |
| # Run this setup script from a machine with flight-profile installed with: | |
| # curl -L RAW_URL |/bin/bash | |
| # | |
| # | |
| # Vars | |
| # | |
| PROF_ROOT="/opt/flight/usr/lib/profile/types/" |
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/bash | |
| TENANT_ID="" | |
| CLIENT_ID="" | |
| CLIENT_SECRET="" | |
| SUBSCRIPTION_ID="" | |
| TOKEN="$(curl -X POST -d "grant_type=client_credentials&client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET&resource=https%3A%2F%2Fmanagement.azure.com%2F" https://login.microsoftonline.com/$TENANT_ID/oauth2/token |jq -r '.access_token')" |