mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-30 06:22:44 +08:00
script
This commit is contained in:
parent
2fbe46eb6c
commit
0dec7e3a3c
@ -5,7 +5,7 @@ echo "Please select an deploy option:"
|
|||||||
echo "1. docker-compose install"
|
echo "1. docker-compose install"
|
||||||
# echo "2. source code install"
|
# echo "2. source code install"
|
||||||
# echo "3. source code install with docker-compose dependence"
|
# echo "3. source code install with docker-compose dependence"
|
||||||
echo "4. exit"
|
echo "2. exit"
|
||||||
|
|
||||||
clear_openimlog() {
|
clear_openimlog() {
|
||||||
rm -rf ./logs/*
|
rm -rf ./logs/*
|
||||||
@ -28,6 +28,7 @@ is_empyt() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
edit_config() {
|
edit_config() {
|
||||||
|
echo "is edit config.yaml?"
|
||||||
echo "1. vi edit config"
|
echo "1. vi edit config"
|
||||||
echo "2. do not edit config"
|
echo "2. do not edit config"
|
||||||
read choice
|
read choice
|
||||||
@ -42,6 +43,7 @@ edit_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
edit_enterprise_config() {
|
edit_enterprise_config() {
|
||||||
|
echo "is edit enterprise config.yaml?"
|
||||||
echo "1. vi edit enterprise config"
|
echo "1. vi edit enterprise config"
|
||||||
echo "2. do not edit enterprise config"
|
echo "2. do not edit enterprise config"
|
||||||
read choice
|
read choice
|
||||||
@ -98,12 +100,12 @@ install_docker_compose() {
|
|||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
internet_ip=`curl ifconfig.me -s`
|
internet_ip=`curl ifconfig.me -s`
|
||||||
minio_endpoint="http://${internet_ip}:10005"
|
minio_endpoint="http://${internet_ip}:10005"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $minio_endpoint
|
export minio_endpoint
|
||||||
echo $user
|
export user
|
||||||
echo $password
|
export password
|
||||||
|
|
||||||
edit_config
|
edit_config
|
||||||
edit_enterprise_config
|
edit_enterprise_config
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user