Browse Source

fix(configure): alternative `fqdn` check

pull/2048/head
Harry 1 year ago committed by GitHub
parent
commit
45af6538f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      sh/debian/configure.sh

2
sh/debian/configure.sh diff.vendored

@ -224,7 +224,7 @@ function runHTTPS() {
echo "Enter the server FQDN $(tput setaf 2)[System: $(hostname)]$(tput sgr0):"
read httpsFQDN
# Check if the FQDN is valid
if ping -c1 -W1 $httpsFQDN 2>/dev/null; then
if dig +short $httpsFQDN >/dev/null 2>&1; then
cd /root/core/https
DOMAIN=$httpsFQDN ./run.sh
echo -e "HTTPS service is up! \n"

Loading…
Cancel
Save