Update vst-install-rhel.sh

Changed hostname variable to match rest of script
This commit is contained in:
cmstew 2019-01-01 12:07:49 -07:00 committed by GitHub
commit be300fd82e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1358,8 +1358,8 @@ $VESTA/bin/v-add-cron-vesta-autoupdate
# Add Let's Encrypt SSL for hostname and enable auto-renew
if [ "$ssl" = 'yes' ]; then
$VESTA/bin/v-add-letsencrypt-domain 'admin' $(hostname) '' 'yes'
$VESTA/bin/v-update-host-certificate admin $(hostname)
$VESTA/bin/v-add-letsencrypt-domain 'admin' $servername '' 'yes'
$VESTA/bin/v-update-host-certificate admin $servername
echo "UPDATE_HOSTNAME_SSL='yes'" >> $VESTA/conf/vesta.conf
fi