This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
generated from meshery/meshery-adapter-template
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from kumarabd/kumarabd/feature/init
minor bug fix on service type
- Loading branch information
Showing
7 changed files
with
103 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
: "${OSM_VERSION:=}" | ||
: "${OSM_ARCH:=amd64}" | ||
: "${OS:=$(uname | awk '{print tolower($0)}')}" | ||
URL="https://github.com/openservicemesh/osm/releases/download/$OSM_VERSION/osm-$OSM_VERSION-$OS-$OSM_ARCH.tar.gz" | ||
|
||
printf "INFO\tDownloading osmctl from: %s" "$URL" | ||
printf "\n\n" | ||
|
||
if curl -L "$URL" | tar xz; then | ||
printf "\n" | ||
printf "INFO\tosmctl %s has been downloaded!\n" "$OSM_VERSION" | ||
printf "\n" | ||
else | ||
printf "\n" | ||
printf "ERROR\tUnable to download osmctl\n" | ||
exit 1 | ||
fi | ||
|
||
printf "INFO\tDeleting deployment......\n" | ||
if ! ./$OS-$OSM_ARCH/osm delete; then | ||
printf "ERROR\tUnable to delete\n" | ||
exit 1 | ||
fi | ||
printf "INFO\tDeleted successfully\n" |
This file contains 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