forked from gy-games/elves
-
Notifications
You must be signed in to change notification settings - Fork 0
/
control
37 lines (33 loc) · 894 Bytes
/
control
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
33
34
35
36
37
#!/bin/bash
function packall() {
echo "PACK ELVES-AGENT"
chmod +x ./agent/control && ./agent/control pack
echo "PACK ELVES-CRON"
chmod +x ./cron/control && ./cron/control pack
echo "PACK ELVES-HEARTBEAT"
chmod +x ./heartbeat/control && ./heartbeat/control pack
echo "PACK ELVES-OPENAPI"
chmod +x ./openapi/control && ./openapi/control pack
echo "PACK ELVES-QUEUE"
chmod +x ./queue/control && ./queue/control pack
echo "PACK ELVES-SCHEDULER"
chmod +x ./scheduler/control && ./scheduler/control pack
echo "PACK ELVES-SUPERVISOR"
chmod +x ./supervisor/control && ./supervisor/control pack
}
function init(){
git submodule init
git submodule update
}
function help() {
echo "$0 init|packall"
}
if [ "$1" == "" ]; then
help
elif [ "$1" == "packall" ];then
packall
elif [ "$1" == "init" ];then
init
else
help
fi