mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-12 21:16:00 +08:00
feat: sets the absolute path of the script
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
+2
-6
@@ -1,3 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright © 2023 OpenIM. All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -14,7 +16,6 @@
|
||||
|
||||
source ../.env
|
||||
|
||||
|
||||
# Check if PASSWORD only contains letters and numbers
|
||||
if [[ "$PASSWORD" =~ ^[a-zA-Z0-9]+$ ]]
|
||||
then
|
||||
@@ -24,15 +25,11 @@ else
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
echo "your user is:$USER"
|
||||
echo "your password is:$PASSWORD"
|
||||
echo "your minio endPoint is:$MINIO_ENDPOINT"
|
||||
echo "your data dir is $DATA_DIR"
|
||||
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
# Specify the config file
|
||||
config_file='../config/config.yaml'
|
||||
|
||||
@@ -57,4 +54,3 @@ sed -i '/minio:/,/endpoint:/s|endpoint: .*|endpoint: '${MINIO_ENDPOINT}'|' $conf
|
||||
|
||||
# Replace secret for token
|
||||
sed -i "s/secret: .*/secret: $PASSWORD/" $config_file
|
||||
|
||||
|
||||
Reference in New Issue
Block a user