clarify wording in Linode script comment on server address

This commit is contained in:
Efim Poberezkin
2022-01-11 21:58:40 +04:00
parent 70823b899f
commit 2f342d3914
2 changed files with 5 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ smp-server init -l --ip @ip_address
# Server fingerprint
fingerprint=$(cat /etc/opt/simplex/fingerprint)
# On login script
# Set up welcome script
echo "bash /opt/simplex/on_login.sh $fingerprint $ip_address" >> /root/.bashrc
# / Create systemd service

View File

@@ -79,9 +79,10 @@ smp-server init "${init_opts[@]}"
# Server fingerprint
fingerprint=$(cat /etc/opt/simplex/fingerprint)
# Determine server address for welcome script and tag
# ! If FQDN was provided and used as part of server initialization, client will not validate this server by IP address,
# ! so we have to specify FQDN for server address regardless of creation of A record in Linode
# Determine server address to specify in welcome script and Linode tag
# ! If FQDN was provided and used as part of server initialization, server's certificate will not pass validation at client
# ! if client tries to connect by server's IP address, so we have to specify FQDN as server address in Linode tag and
# ! in welcome script regardless of creation of A record in Linode
# ! https://hackage.haskell.org/package/x509-validation-1.6.10/docs/src/Data-X509-Validation.html#validateCertificateName
if [[ -n "$FQDN" ]]; then
server_address=$FQDN