Browse Source

Add UPDATE_HOSTNAME_SSL variable to hestia.conf if not exist.

Raphael Schneeberger 6 years ago
parent
commit
9308c83a50
1 changed files with 5 additions and 0 deletions
  1. 5 0
      bin/v-update-host-certificate

+ 5 - 0
bin/v-update-host-certificate

@@ -69,6 +69,11 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
     chown $exim_user:mail $HESTIA/ssl/certificate.key
     chown $exim_user:mail $HESTIA/ssl/certificate.key
 fi
 fi
 
 
+# Add UPDATE_HOSTNAME_SSL if not exist
+if [ -z "$UPDATE_HOSTNAME_SSL" ]; then
+    echo "UPDATE_HOSTNAME_SSL='yes'" >> $HESTIA/conf/hestia.conf
+fi
+
 # Restart services
 # Restart services
 $BIN/v-restart-web
 $BIN/v-restart-web
 $BIN/v-restart-proxy
 $BIN/v-restart-proxy