mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-26 21:22:16 +08:00 
			
		
		
		
	feat: config env optimize
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
		
							parent
							
								
									0bc8b9259e
								
							
						
					
					
						commit
						44cd181834
					
				
							
								
								
									
										6
									
								
								.env
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								.env
									
									
									
									
									
								
							| @ -1,5 +1,5 @@ | |||||||
| USER=root | USER=root | ||||||
| PASSWORD=openIM123 | PASSWORD=openIM123 | ||||||
| MINIO_ENDPOINT=http://116.30.3.80:10005 | MINIO_ENDPOINT=http://113.99.98.99:10005 | ||||||
| API_URL=http://116.30.3.80:10002/object/ | API_URL=http://113.99.98.99:10002/object/ | ||||||
| DATA_DIR=./ | DATA_DIR=./ | ||||||
| @ -12,81 +12,133 @@ | |||||||
| # See the License for the specific language governing permissions and | # See the License for the specific language governing permissions and | ||||||
| # limitations under the License. | # limitations under the License. | ||||||
| 
 | 
 | ||||||
| #OpenIM config | # ----------------------------------------------------------------- | ||||||
|  | # Infrastructural configurations, please modify based on your setup | ||||||
|  | # ----------------------------------------------------------------- | ||||||
| 
 | 
 | ||||||
| 
 | ###################### Zookeeper ###################### | ||||||
| #---------------Infrastructure configuration---------------------# | # Zookeeper configuration | ||||||
|  | # It's not recommended to modify the schema | ||||||
|  | #  | ||||||
|  | # Zookeeper address | ||||||
|  | # Zookeeper username | ||||||
|  | # Zookeeper password | ||||||
| zookeeper: | zookeeper: | ||||||
|   schema: openim                          #不建议修改 |   schema: openim                           | ||||||
|   address: [ 127.0.0.1:2181 ]             # |   address: [ 127.0.0.1:2181 ]             | ||||||
|   username:                               #用户名 |   username:                                | ||||||
|   password:                               #密码 |   password:    | ||||||
| 
 | 
 | ||||||
|  | ###################### Mysql ###################### | ||||||
|  | # MySQL configuration | ||||||
|  | # Currently, only single machine setup is supported | ||||||
|  | # | ||||||
|  | # Maximum number of open connections | ||||||
|  | # Maximum number of idle connections | ||||||
|  | # Maximum lifetime in seconds a connection can be reused | ||||||
|  | # Log level: 1=slient, 2=error, 3=warn, 4=info | ||||||
|  | # Slow query threshold in milliseconds | ||||||
| mysql: | mysql: | ||||||
|   address: [ 127.0.0.1:13306 ]            #目前仅支持单机 |   address: [ 127.0.0.1:13306 ] | ||||||
|   username: root |   username: root | ||||||
|   password: openIM123 |   password: openIM123 | ||||||
|   database: openIM_v3                     #不建议修改 |   database: openIM_v3                      | ||||||
|   maxOpenConn: 1000                       #最大连接数 |   maxOpenConn: 1000                        | ||||||
|   maxIdleConn: 100                        #最大空闲连接数 |   maxIdleConn: 100                         | ||||||
|   maxLifeTime: 60                         #连接可以重复使用的最长时间(秒) |   maxLifeTime: 60                          | ||||||
|   logLevel: 4                             #日志级别 1=slient 2=error 3=warn 4=info |   logLevel: 4                              | ||||||
|   slowThreshold: 500                      #慢语句阈值 (毫秒) |   slowThreshold: 500     | ||||||
| 
 | 
 | ||||||
|  | ###################### Mongo ###################### | ||||||
|  | # MongoDB configuration | ||||||
|  | # If uri is not empty, it will be used directly | ||||||
|  | # | ||||||
|  | # MongoDB address for standalone setup, Mongos address for sharded cluster setup | ||||||
|  | # Default MongoDB database name | ||||||
|  | # Maximum connection pool size | ||||||
| mongo: | mongo: | ||||||
|   uri:                                    #不为空则直接使用该值 |   uri: | ||||||
|   address: [ 127.0.0.1:37017 ]            #单机时为mongo地址,使用分片集群时,为mongos地址 |   address: [ 127.0.0.1:37017 ] | ||||||
|   database: openIM_v3                      #mongo db 默认即可 |   database: openIM_v3 | ||||||
|   username: root |   username: root | ||||||
|   password: openIM123 |   password: openIM123 | ||||||
|   maxPoolSize: 100 |   maxPoolSize: 100   | ||||||
| 
 | 
 | ||||||
|  | ###################### Redis ###################### | ||||||
|  | # Redis configuration | ||||||
|  | # | ||||||
|  | # Username is required only for Redis version 6.0+ | ||||||
| redis: | redis: | ||||||
|   address: [ 127.0.0.1:16379 ]            # |   address: [ 127.0.0.1:16379 ] | ||||||
|   username:                               #only redis version 6.0+ need username |   username:                                | ||||||
|   password: openIM123 |   password: openIM123 | ||||||
| 
 | 
 | ||||||
|  | ###################### Kafka ###################### | ||||||
|  | # Kafka configuration | ||||||
|  | # | ||||||
|  | # Kafka username | ||||||
|  | # Kafka password | ||||||
|  | # It's not recommended to modify this topic name | ||||||
|  | # Consumer group ID, it's not recommended to modify | ||||||
| kafka: | kafka: | ||||||
|   username:                               #用户名 |   username:                                | ||||||
|   password:                               #密码 |   password:                                | ||||||
|   addr: [ 127.0.0.1:9092 ]                # |   addr: [ 127.0.0.1:9092 ] | ||||||
|   latestMsgToRedis: |   latestMsgToRedis: | ||||||
|     topic: "latestMsgToRedis"             #不建议修改 |     topic: "latestMsgToRedis"              | ||||||
|   offlineMsgToMongo: |   offlineMsgToMongo: | ||||||
|     topic: "offlineMsgToMongoMysql"       #不建议修改 |     topic: "offlineMsgToMongoMysql"        | ||||||
|   msgToPush: |   msgToPush: | ||||||
|     topic: "msgToPush"                    #不建议修改 |     topic: "msgToPush" | ||||||
|   consumerGroupID: #消费者组,不建议修改 |   consumerGroupID: | ||||||
|     msgToRedis: redis                     # |     msgToRedis: redis | ||||||
|     msgToMongo: mongo                     # |     msgToMongo: mongo | ||||||
|     msgToMySql: mysql                     # |     msgToMySql: mysql | ||||||
|     msgToPush: push                       # |     msgToPush: push | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
|  | ###################### RPC ###################### | ||||||
|  | # RPC configuration | ||||||
|  | # | ||||||
|  | # IP address to register with zookeeper when starting RPC, the IP and corresponding rpcPort should be accessible by api/gateway | ||||||
|  | # Default listen IP is 0.0.0.0 | ||||||
| rpc: | rpc: | ||||||
|   registerIP:                             #作为rpc启动时,注册到zookeeper的IP,api/gateway能访问到此ip和对应的rpcPort中的端口 |   registerIP: | ||||||
|   listenIP:                               #默认为0.0.0.0 |   listenIP: 0.0.0.0 | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
|  | ###################### API ###################### | ||||||
|  | # API configuration | ||||||
|  | # | ||||||
|  | # API service port | ||||||
|  | # Default listen IP is 0.0.0.0 | ||||||
| api: | api: | ||||||
|   openImApiPort: [ 10002 ]                #api服务端口 |   openImApiPort: [ 10002 ]                 | ||||||
|   listenIP:                               #默认为0.0.0.0 |   listenIP: 0.0.0.0     | ||||||
| 
 | 
 | ||||||
|  | ###################### Gateway ###################### | ||||||
|  | # Object storage configuration | ||||||
|  | # | ||||||
|  | # Use minio for object storage | ||||||
|  | # API URL should be accessible by the app | ||||||
|  | # It's not recommended to modify the bucket name | ||||||
|  | # Endpoint should be accessible by the app | ||||||
|  | # Session token | ||||||
|  | # Configuration for Tencent COS | ||||||
|  | # Configuration for Aliyun OSS | ||||||
| object: | object: | ||||||
|   enable: "minio"                           #使用minio |   enable: "minio"                          | ||||||
|   apiURL: "http://127.0.0.1:10002/object/"  #地址需要app能访问到 |   apiURL: "http://127.0.0.1:10002/object/" | ||||||
|   minio: |   minio: | ||||||
|     bucket: "openim"                      #不建议修改 |     bucket: "openim"                       | ||||||
|     endpoint: http://127.0.0.1:10005      #地址需要app能够访问 |     endpoint: http://127.0.0.1:10005       | ||||||
|     accessKeyID: root |     accessKeyID: root | ||||||
|     secretAccessKey: openIM123 |     secretAccessKey: openIM123 | ||||||
|     sessionToken: ""            #token |     sessionToken: ""                       | ||||||
|   cos: #tencent cos |   cos:                                     | ||||||
|     bucketURL: "https://temp-1252357374.cos.ap-chengdu.myqcloud.com" |     bucketURL: "https://temp-1252357374.cos.ap-chengdu.myqcloud.com" | ||||||
|     secretID: "" |     secretID: "" | ||||||
|     secretKey: "" |     secretKey: "" | ||||||
|     sessionToken: "" |     sessionToken: "" | ||||||
|   oss: #ali oss |   oss:                                     | ||||||
|     endpoint: "https://oss-cn-chengdu.aliyuncs.com" |     endpoint: "https://oss-cn-chengdu.aliyuncs.com" | ||||||
|     bucket: "demo-9999999" |     bucket: "demo-9999999" | ||||||
|     bucketURL: "https://demo-9999999.oss-cn-chengdu.aliyuncs.com" |     bucketURL: "https://demo-9999999.oss-cn-chengdu.aliyuncs.com" | ||||||
| @ -94,7 +146,11 @@ object: | |||||||
|     accessKeySecret: "" |     accessKeySecret: "" | ||||||
|     sessionToken: "" |     sessionToken: "" | ||||||
| 
 | 
 | ||||||
| rpcPort: #rpc服务端口,不建议修改,端口由脚本读取后传入程序,如启动多个程序,只需要填入多个端口,用逗号隔开,如  [10110, 10111] | # RPC service ports | ||||||
|  | # These ports are passed into the program by the script and are not recommended to modify | ||||||
|  | # For launching multiple programs, just fill in multiple ports separated by commas | ||||||
|  | # For example, [10110, 10111] | ||||||
|  | rpcPort:  | ||||||
|   openImUserPort: [ 10110 ] |   openImUserPort: [ 10110 ] | ||||||
|   openImFriendPort: [ 10120 ] |   openImFriendPort: [ 10120 ] | ||||||
|   openImMessagePort: [ 10130 ] |   openImMessagePort: [ 10130 ] | ||||||
| @ -105,7 +161,8 @@ rpcPort: #rpc服务端口,不建议修改,端口由脚本读取后传入程 | |||||||
|   openImConversationPort: [ 10180 ] |   openImConversationPort: [ 10180 ] | ||||||
|   openImThirdPort: [ 10190 ] |   openImThirdPort: [ 10190 ] | ||||||
| 
 | 
 | ||||||
| rpcRegisterName: #rpc注册服务名,不建议修改 | # RPC service names for registration, it's not recommended to modify these | ||||||
|  | rpcRegisterName: | ||||||
|   openImUserName: User |   openImUserName: User | ||||||
|   openImFriendName: Friend |   openImFriendName: Friend | ||||||
|   openImMsgName: Msg |   openImMsgName: Msg | ||||||
| @ -116,78 +173,132 @@ rpcRegisterName: #rpc注册服务名,不建议修改 | |||||||
|   openImConversationName: Conversation |   openImConversationName: Conversation | ||||||
|   openImThirdName: Third |   openImThirdName: Third | ||||||
| 
 | 
 | ||||||
|  | # Log configuration | ||||||
|  | # | ||||||
|  | # Storage directory | ||||||
|  | # Log rotation time | ||||||
|  | # Maximum number of logs to retain | ||||||
|  | # Log level, 6 means all levels | ||||||
|  | # Whether to output to stdout | ||||||
|  | # Whether to output in json format | ||||||
|  | # Whether to include stack trace in logs | ||||||
| log: | log: | ||||||
|   storageLocation: ../../../../../logs/   #存放目录 |   storageLocation: ../../../../../logs/   | ||||||
|   rotationTime: 24                        #日志旋转时间 |   rotationTime: 24                         | ||||||
|   remainRotationCount: 2                  #日志数量 |   remainRotationCount: 2                   | ||||||
|   remainLogLevel: 6                       #日志级别 6表示全都打印, |   remainLogLevel: 6                        | ||||||
|   isStdout: false |   isStdout: false                          | ||||||
|   isJson: false |   isJson: false                            | ||||||
|   withStack: false |   withStack: false | ||||||
| 
 | 
 | ||||||
|  | # Long connection server configuration | ||||||
|  | # | ||||||
|  | # Websocket port for msg_gateway | ||||||
|  | # Maximum number of websocket connections | ||||||
|  | # Maximum length of websocket request package | ||||||
|  | # Websocket connection handshake timeout | ||||||
| longConnSvr: | longConnSvr: | ||||||
|   openImWsPort: [ 10001 ]             #msg_gateway的websocket端口 |   openImWsPort: [ 10001 ]                  | ||||||
|   websocketMaxConnNum: 100000         #websocket最大连接数 |   websocketMaxConnNum: 100000              | ||||||
|   websocketMaxMsgLen: 4096            #websocket请求包最大长度 |   websocketMaxMsgLen: 4096                 | ||||||
|   websocketTimeout: 10                #websocket连接握手超时时间 |   websocketTimeout: 10   | ||||||
| 
 | 
 | ||||||
|  | # Push notification service configuration | ||||||
|  | # | ||||||
|  | # Use GeTui for push notifications | ||||||
|  | # GeTui offline push configuration | ||||||
|  | # FCM offline push configuration | ||||||
|  | # Account file, place it in the config directory | ||||||
|  | # JPush configuration, modify these after applying in JPush backend | ||||||
| push: | push: | ||||||
|   enable: getui |   enable: getui | ||||||
|   geTui: #个推离线推送 |   geTui: | ||||||
|     pushUrl: "https://restapi.getui.com/v2/$appId" |     pushUrl: "https://restapi.getui.com/v2/$appId" | ||||||
|     masterSecret: "" |     masterSecret: "" | ||||||
|     appKey: "" |     appKey: "" | ||||||
|     intent: "" |     intent: "" | ||||||
|     channelID: "" |     channelID: "" | ||||||
|     channelName: "" |     channelName: "" | ||||||
|   fcm: #fcm离线推送 |   fcm: | ||||||
|     serviceAccount: "x.json"          #帐号文件,并放在 config目录下 |     serviceAccount: "x.json" | ||||||
|   jpns: #极光推送 在极光后台申请后,修改以下四项 |   jpns: | ||||||
|     appKey: |     appKey: | ||||||
|     masterSecret: |     masterSecret: | ||||||
|     pushUrl: |     pushUrl: | ||||||
|     pushIntent: |     pushIntent: | ||||||
| 
 | 
 | ||||||
|  | # App manager configuration | ||||||
|  | # | ||||||
|  | # Built-in app manager user IDs | ||||||
|  | # Built-in app manager nicknames | ||||||
| manager: | manager: | ||||||
|   userID: [ "openIM123456","openIM654321","openIMAdmin" ]   #内置的app管理员userID |   userID: [ "openIM123456","openIM654321","openIMAdmin" ] | ||||||
|   nickname: [ "system1","system2", "system3" ]              #内置的app管理员nickname |   nickname: [ "system1","system2", "system3" ] | ||||||
| 
 | 
 | ||||||
|  | # Multi-platform login policy | ||||||
|  | # For each platform(Android, iOS, Windows, Mac, web), only one can be online at a time | ||||||
|  | multiLoginPolicy: 1 | ||||||
| 
 | 
 | ||||||
|  | # Whether to store messages in MySQL, messages in MySQL are only used for management background | ||||||
|  | chatPersistenceMysql: true | ||||||
| 
 | 
 | ||||||
|  | # Message cache timeout in seconds, it's not recommended to modify | ||||||
|  | msgCacheTimeout: 86400 | ||||||
| 
 | 
 | ||||||
| multiLoginPolicy: 1                                     #多平台登录:Android、iOS、Windows、Mac、web 每种平台只能有一个在线 | # Whether to enable read receipts for group chat | ||||||
|  | groupMessageHasReadReceiptEnable: true | ||||||
| 
 | 
 | ||||||
|  | # Whether to enable read receipts for single chat | ||||||
|  | singleMessageHasReadReceiptEnable: true | ||||||
| 
 | 
 | ||||||
| chatPersistenceMysql: true                              #消息是否存入mysql,mysql中的消息仅用于管理后台使用 | # MongoDB offline message retention period in days | ||||||
| msgCacheTimeout: 86400                                  #信消息缓存时间秒,不建议修改 | retainChatRecords: 365 | ||||||
| groupMessageHasReadReceiptEnable: true                  #群聊已读是否开启 |  | ||||||
| singleMessageHasReadReceiptEnable: true                 #单聊已读是否开启 |  | ||||||
| 
 | 
 | ||||||
| retainChatRecords: 365                                  #mongo保存离线消息时间(天) | # Schedule to clear expired messages(older than retainChatRecords days) in MongoDB every Wednesday at 2am | ||||||
| chatRecordsClearTime: "0 2 * * 3"                       #每周三凌晨2点清理mongo中的过期(超过retainChatRecords时间)消息,这个删除是为了清理满足上个配置retainChatRecords的过期消息,不会发送通知,仅仅作为清理磁盘使用 | # This deletion is just for cleaning up disk usage according to previous configuration retainChatRecords, no notification will be sent | ||||||
| msgDestructTime: "0 2 * * *"                            #消息自动删除时间,每天凌晨2点删除过期消息,这个删除是为了删除保留时间超过超过会话字段msg_destruct_time(秒)的消息。 | chatRecordsClearTime: "0 2 * * 3" | ||||||
| 
 | 
 | ||||||
|  | # Schedule to auto delete messages every day at 2am | ||||||
|  | # This deletion is for messages that have been retained for more than msg_destruct_time (seconds) in the conversation field | ||||||
|  | msgDestructTime: "0 2 * * *" | ||||||
|  | 
 | ||||||
|  | # Secret key | ||||||
| secret: openIM123 | secret: openIM123 | ||||||
| 
 | 
 | ||||||
|  | # Token policy | ||||||
|  | # | ||||||
|  | # Token expiration period in days | ||||||
| tokenPolicy: | tokenPolicy: | ||||||
|   expire: 90                                     #过期时间(天) |   expire: 90 | ||||||
| 
 | 
 | ||||||
|  | # Message verification policy | ||||||
|  | # | ||||||
|  | # Whether to verify friendship when sending messages | ||||||
| messageVerify: | messageVerify: | ||||||
|   friendVerify: false                                  #发送消息时是否验证好友关系 |   friendVerify: false | ||||||
| 
 | 
 | ||||||
| #ios系统推送声音以及标记计数 | # iOS push notification configuration | ||||||
|  | # | ||||||
|  | # iOS push notification sound | ||||||
|  | # Whether to count badge | ||||||
|  | # Whether it's production environment | ||||||
| iosPush: | iosPush: | ||||||
|   pushSound: "xxx" |   pushSound: "xxx" | ||||||
|   badgeCount: true |   badgeCount: true | ||||||
|   production: false |   production: false | ||||||
| 
 | 
 | ||||||
|  | # Callback configuration | ||||||
|  | # | ||||||
|  | # Callback URL | ||||||
|  | # Whether to enable this callback event | ||||||
|  | # Timeout in seconds | ||||||
|  | # Whether to continue execution if callback fails | ||||||
| callback: | callback: | ||||||
|   # 回调callback |  | ||||||
|   url: |   url: | ||||||
|   beforeSendSingleMsg: |   beforeSendSingleMsg: | ||||||
|     enable: false                                     #是否启用此回调事件 |     enable: false | ||||||
|     timeout: 5                                        #超时时间(秒) |     timeout: 5 | ||||||
|     failedContinue: true                              #如回调失败是否继续往后执行 |     failedContinue: true | ||||||
|   afterSendSingleMsg: |   afterSendSingleMsg: | ||||||
|     enable: false |     enable: false | ||||||
|     timeout: 5 |     timeout: 5 | ||||||
| @ -244,8 +355,11 @@ callback: | |||||||
|     timeout: 5 |     timeout: 5 | ||||||
|     failedContinue: true |     failedContinue: true | ||||||
| 
 | 
 | ||||||
| 
 | ###################### Prometheus ###################### | ||||||
| prometheus: #prometheus每个服务的端口数量需要和rpcPort保持对应 | # Prometheus configuration | ||||||
|  | # The number of Prometheus ports per service needs to correspond to rpcPort | ||||||
|  | # The number of ports needs to be consistent with msg_transfer_service_num in script/path_info.sh | ||||||
|  | prometheus: | ||||||
|   enable: false |   enable: false | ||||||
|   userPrometheusPort: [ 20110 ] |   userPrometheusPort: [ 20110 ] | ||||||
|   friendPrometheusPort: [ 20120 ] |   friendPrometheusPort: [ 20120 ] | ||||||
| @ -257,4 +371,4 @@ prometheus: #prometheus每个服务的端口数量需要和rpcPort保持对应 | |||||||
|   conversationPrometheusPort: [ 20230 ] |   conversationPrometheusPort: [ 20230 ] | ||||||
|   rtcPrometheusPort: [ 21300 ] |   rtcPrometheusPort: [ 21300 ] | ||||||
|   thirdPrometheusPort: [ 21301 ] |   thirdPrometheusPort: [ 21301 ] | ||||||
|   messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] #端口数量需要和script/path_info.sh中的msg_transfer_service_num保持一致 |   messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] | ||||||
| @ -308,9 +308,9 @@ function cmd_help() { | |||||||
|     color_echo ${BLUE_PREFIX} "-cn, --china         ${CYAN_PREFIX}set to use the Chinese domestic proxy${COLOR_SUFFIX}" |     color_echo ${BLUE_PREFIX} "-cn, --china         ${CYAN_PREFIX}set to use the Chinese domestic proxy${COLOR_SUFFIX}" | ||||||
|     color_echo ${BLUE_PREFIX} "-t,  --tag           ${CYAN_PREFIX}specify the tag (default option, set to latest if not specified)${COLOR_SUFFIX}" |     color_echo ${BLUE_PREFIX} "-t,  --tag           ${CYAN_PREFIX}specify the tag (default option, set to latest if not specified)${COLOR_SUFFIX}" | ||||||
|     color_echo ${BLUE_PREFIX} "-r,  --release       ${CYAN_PREFIX}specify the release branch (cannot be used with the tag option)${COLOR_SUFFIX}" |     color_echo ${BLUE_PREFIX} "-r,  --release       ${CYAN_PREFIX}specify the release branch (cannot be used with the tag option)${COLOR_SUFFIX}" | ||||||
|     color_echo ${BLUE_PREFIX} "-g,  --go-version    ${CYAN_PREFIX}set the Go language version (default: GO_VERSION=\"1.18\")${COLOR_SUFFIX}" |  | ||||||
|     color_echo ${BLUE_PREFIX} "-i,  --install-dir   ${CYAN_PREFIX}set the OpenIM installation directory (default: /tmp)${COLOR_SUFFIX}" |  | ||||||
|     color_echo ${BLUE_PREFIX} "-gt, --github-token  ${CYAN_PREFIX}set the GITHUB_TOKEN (default: not set)${COLOR_SUFFIX}" |     color_echo ${BLUE_PREFIX} "-gt, --github-token  ${CYAN_PREFIX}set the GITHUB_TOKEN (default: not set)${COLOR_SUFFIX}" | ||||||
|  |     color_echo ${BLUE_PREFIX} "-g,  --go-version    ${CYAN_PREFIX}set the Go language version (default: GO_VERSION=\"1.18\")${COLOR_SUFFIX}" | ||||||
|  |     color_echo ${BLUE_PREFIX} "--install-dir        ${CYAN_PREFIX}set the OpenIM installation directory (default: /tmp)${COLOR_SUFFIX}" | ||||||
|     color_echo ${BLUE_PREFIX} "--cpu                ${CYAN_PREFIX}set the number of concurrent processes${COLOR_SUFFIX}" |     color_echo ${BLUE_PREFIX} "--cpu                ${CYAN_PREFIX}set the number of concurrent processes${COLOR_SUFFIX}" | ||||||
|     echo |     echo | ||||||
|     color_echo ${RED_PREFIX} "Note: Only one of the -t/--tag or -r/--release options can be used at a time.${COLOR_SUFFIX}" |     color_echo ${RED_PREFIX} "Note: Only one of the -t/--tag or -r/--release options can be used at a time.${COLOR_SUFFIX}" | ||||||
| @ -380,7 +380,7 @@ function parseinput() { | |||||||
|                 shift |                 shift | ||||||
|                 GO_VERSION=$1 |                 GO_VERSION=$1 | ||||||
|                 ;; |                 ;; | ||||||
|             -i|--install-dir) |             --install-dir) | ||||||
|                 shift |                 shift | ||||||
|                 INSTALL_DIR=$1 |                 INSTALL_DIR=$1 | ||||||
|                 ;; |                 ;; | ||||||
| @ -435,7 +435,7 @@ print_progress() { | |||||||
| color_echo() { | color_echo() { | ||||||
|     COLOR=$1 |     COLOR=$1 | ||||||
|     shift |     shift | ||||||
|     echo -e "${COLOR}===> $* ${COLOR_SUFFIX}" |     echo -e "${COLOR} $* ${COLOR_SUFFIX}" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| # Color definitions | # Color definitions | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user