Get Internet IP automatically

test-errcode
skiffer-git 3 years ago
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…
Cancel
Save