Skip to content

Commit

Permalink
check if https
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Dec 3, 2023
1 parent 93b88fa commit e58f9a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions install.ztnet/bash/ztnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,11 @@ read input_ip < /dev/tty
# Use the default local_ip if the user pressed Enter without typing anything
server_ip=${input_ip:-$local_ip}

# Check if http:// is already included in the server_ip
if [[ $server_ip != http://* ]]; then
# Check if the input already starts with http:// or https://
if [[ $server_ip != http://* && $server_ip != https://* ]]; then
server_ip="http://${server_ip}"
fi


POSTGRES_PASSWORD="postgres"

# Install PostgreSQL
Expand Down

0 comments on commit e58f9a8

Please sign in to comment.