Browse Source

Adjust to use full FQDN, thanks to @ferow2k!

Raphael Schneeberger 6 years ago
parent
commit
6cc53e30b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/v-add-web-domain-ssl

+ 1 - 1
bin/v-add-web-domain-ssl

@@ -126,7 +126,7 @@ $BIN/v-restart-proxy $restart
 check_result $? "Proxy restart failed" >/dev/null
 check_result $? "Proxy restart failed" >/dev/null
 
 
 if [ ! -z "$UPDATE_HOSTNAME_SSL" ] && [ "$UPDATE_HOSTNAME_SSL" = "yes" ]; then
 if [ ! -z "$UPDATE_HOSTNAME_SSL" ] && [ "$UPDATE_HOSTNAME_SSL" = "yes" ]; then
-    hostname=$(hostname)
+    hostname=$(hostname -f)
     if [ "$hostname" = "$domain" ]; then
     if [ "$hostname" = "$domain" ]; then
         $BIN/v-update-host-certificate $user $domain
         $BIN/v-update-host-certificate $user $domain
     fi
     fi