File tree Expand file tree Collapse file tree 1 file changed +17
-19
lines changed Expand file tree Collapse file tree 1 file changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -16,25 +16,23 @@ docker_install() {
16
16
MODE=" "
17
17
DEFAULT_CONTAINER_NAME=" shellhub"
18
18
19
- if [ " $1 " = " -s" ]; then
20
- case " $2 " in
21
- " agent" )
22
- shift 2
23
- ;;
24
- " connector" )
25
- MODE=" connector"
26
- DEFAULT_CONTAINER_NAME=" shellhub-connector"
27
- ARGS=" $ARGS -e SHELLHUB_PRIVATE_KEYS=${PRIVATE_KEYS:-/ host/ etc/ shellhub/ connector/ keys} "
28
-
29
- echo " 🚀 Starting ShellHub container in Docker Connector mode..."
30
- shift 2
31
- ;;
32
- * )
33
- echo " ❌ Invalid mode: $2 "
34
- exit 1
35
- ;;
36
- esac
37
- fi
19
+ case " $1 " in
20
+ " agent" )
21
+ shift 1
22
+ ;;
23
+ " connector" )
24
+ MODE=" connector"
25
+ DEFAULT_CONTAINER_NAME=" shellhub-connector"
26
+ ARGS=" $ARGS -e SHELLHUB_PRIVATE_KEYS=${PRIVATE_KEYS:-/ host/ etc/ shellhub/ connector/ keys} "
27
+
28
+ echo " 🚀 Starting ShellHub container in Docker Connector mode..."
29
+ shift 1
30
+ ;;
31
+ * )
32
+ echo " ❌ Invalid mode: $2 "
33
+ exit 1
34
+ ;;
35
+ esac
38
36
39
37
if [ -z " $MODE " ]; then
40
38
ARGS=" $ARGS -e SHELLHUB_PRIVATE_KEY=${PRIVATE_KEY:-/ host/ etc/ shellhub.key} "
You can’t perform that action at this time.
0 commit comments