Browse Source

Merge pull request #7619 from nocodb/chore/docker-setup-script

NocoDB setup script -  fallback to localhost if public ip not found
pull/7635/head
navi 10 months ago committed by GitHub
parent
commit
2b3a13040e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      docker-compose/setup-script/noco.sh

5
docker-compose/setup-script/noco.sh

@ -125,6 +125,11 @@ message_arr=()
# extract public ip address
PUBLIC_IP=$(dig +short myip.opendns.com @resolver1.opendns.com)
# Check if the public IP address is not empty, if empty then use the localhost
if [ -z "$PUBLIC_IP" ]; then
PUBLIC_IP="localhost"
fi
# generate a folder for the docker-compose file which is not existing and do the setup within the folder
# Define the folder name
FOLDER_NAME="nocodb_$(date +"%Y%m%d_%H%M%S")"

Loading…
Cancel
Save