mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
Get Internet IP automatically
This commit is contained in:
parent
b15ae542aa
commit
a01781d5b7
@ -1,5 +1,14 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
internet_ip=`curl ifconfig.me -s`
|
||||||
|
echo $internet_ip
|
||||||
|
|
||||||
|
source .env
|
||||||
|
echo $MINIO_ENDPOINT
|
||||||
|
if [ $MINIO_ENDPOINT == "http://127.0.0.1:10005" ]; then
|
||||||
|
sed -i "s/127.0.0.1/${internet_ip}/" .env
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
cd script ;
|
cd script ;
|
||||||
chmod +x *.sh ;
|
chmod +x *.sh ;
|
||||||
./init_pwd.sh
|
./init_pwd.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user