Skip to content

Commit c5dc16b

Browse files
authored
Use LOCAL_IP for Endurain host configuration
1 parent a94637b commit c5dc16b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

install/endurain-install.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PYTHON_VERSION="3.13" setup_uv
2424
NODE_VERSION="24" setup_nodejs
2525
PG_VERSION="17" PG_MODULES="postgis" setup_postgresql
2626
PG_DB_NAME="enduraindb" PG_DB_USER="endurain" setup_postgresql_db
27-
27+
import_local_ip
2828
fetch_and_deploy_gh_release "endurain" "joaovitoriasilva/endurain" "tarball" "latest" "/opt/endurain"
2929

3030
msg_info "Setting up Endurain"
@@ -36,8 +36,7 @@ rm -rf \
3636
mkdir -p /opt/endurain_data/{data,logs}
3737
SECRET_KEY=$(openssl rand -hex 32)
3838
FERNET_KEY=$(openssl rand -base64 32)
39-
IP=$(hostname -I | awk '{print $1}')
40-
ENDURAIN_HOST=http://${IP}:8080
39+
ENDURAIN_HOST=http://${LOCAL_IP}:8080
4140
cat <<EOF >/opt/endurain/.env
4241
DB_PASSWORD=${PG_DB_PASS}
4342

0 commit comments

Comments
 (0)