-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathstop.sh
executable file
·33 lines (23 loc) · 1.13 KB
/
stop.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
this_file=`basename $0`
this_script="$this_dir/$this_file"
user_args=$@
user_args_count=$#
echo ""
echo "-----------------------------------------------------------------------------------------------"
echo "------- Executing [$this_script $user_agrs] -------"
echo "-----------------------------------------------------------------------------------------------"
echo ""
GEM_HOME=$PWD
source ${GEM_HOME}/set_env.sh >>/dev/null
write_log "------------------------------------------------------------------------------"
write_log "Cleaning up already existing image and container ... "
write_log "------------------------------------------------------------------------------"
run_cmd "${GEM_NEO4J_HOME}/stop.sh" "ignore_errors"
run_cmd "${GEM_API_HOME}/stop.sh" "ignore_errors"
write_log "------------------------------------------------------------------------------"
write_log "Cleaning up networks ... "
write_log "------------------------------------------------------------------------------"
run_cmd "docker network rm ${GEM_NETWORK}" "ignore_errors"
write_log "SUCCESS"