Skip to content

Commit

Permalink
fix: issue alibaba#3076 (alibaba#3077)
Browse files Browse the repository at this point in the history
  • Loading branch information
XuDaojie authored Apr 16, 2021
1 parent 8cfb07f commit 846c887
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
12 changes: 10 additions & 2 deletions admin/admin-web/src/main/bin/restart.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/bin/bash

sh stop.sh
case $(uname) in
Linux)
bin_abs_path=$(readlink -f $(dirname $0))
;;
*)
bin_abs_path=$(cd $(dirname $0) ||exit ; pwd)
;;
esac

sh startup.sh
sh "$bin_abs_path"/stop.sh
sh "$bin_abs_path"/startup.sh
12 changes: 10 additions & 2 deletions client-adapter/launcher/src/main/bin/restart.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/bin/bash

sh stop.sh
case $(uname) in
Linux)
bin_abs_path=$(readlink -f $(dirname $0))
;;
*)
bin_abs_path=$(cd $(dirname $0) ||exit ; pwd)
;;
esac

sh startup.sh
sh "$bin_abs_path"/stop.sh
sh "$bin_abs_path"/startup.sh
13 changes: 11 additions & 2 deletions deployer/src/main/bin/restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,14 @@

args=$@

sh stop.sh $args
sh startup.sh $args
case $(uname) in
Linux)
bin_abs_path=$(readlink -f $(dirname $0))
;;
*)
bin_abs_path=$(cd $(dirname $0) ||exit ; pwd)
;;
esac

sh "$bin_abs_path"/stop.sh $args
sh "$bin_abs_path"/startup.sh $args

0 comments on commit 846c887

Please sign in to comment.