Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmachyshyn committed May 28, 2024
1 parent 93c1671 commit 568550d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ function handleArguments() {
;;

--public-ip)
data[ipAddressType]="public"
data[ipAddressType]="1"
;;

--private-ip)
data[ipAddressType]="private"
data[ipAddressType]="2"
;;
esac
done
Expand Down Expand Up @@ -702,14 +702,16 @@ function defineIpAddress() {
local publicIp=$(getPublicIp)
local privateIp=$(getServerIp)

read -p "
if [ -z "${data[ipAddressType]}" ]; then
read -p "
Please choose your IP for the future EspoCRM instance [1-2]:
* 1. Public IP (recommended): $publicIp [1]
* 2. Private IP (for local installation only): $privateIp [2]
* 3. Enter another IP [3]
" ipAddressType
fi

case "$ipAddressType" in
case "${data[ipAddressType]}" in
1 )
data[domain]="$publicIp"
;;
Expand Down

0 comments on commit 568550d

Please sign in to comment.