forked from fonoster/fonoster
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
54 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
function stop() { | ||
local VERSION COMPOSE_PROJECT_VERSION | ||
|
||
info "Stopping Fonoster application... 🚀 " | ||
|
||
execute "cd /out/operator" | ||
|
||
[ -f .env ] || error "You don't have a Fonoster application installed in this directory. Please, install it first." | ||
|
||
VERSION=$FONOSTER_VERSION | ||
COMPOSE_PROJECT_VERSION=$(grep COMPOSE_PROJECT_VERSION .env | cut -d '=' -f2) | ||
|
||
EXTRA_SERVICES=$(grep EXTRA_SERVICES .env | cut -d '=' -f2) | ||
|
||
[ -z "$VERSION" ] && VERSION=$FONOSTER_LATEST_VERSION | ||
[ -z "$COMPOSE_PROJECT_VERSION" ] && error "Could not get the current version of Fonoster application." | ||
|
||
info "Stop Fonoster application... 🚨 " | ||
execute "bash ./basic-network.sh down" | ||
|
||
} |
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,3 @@ | ||
#!/bin/bash | ||
|
||
/docker/run.sh stop |