Update install-new-roundcube.sh

This commit is contained in:
myvesta 2021-12-17 22:36:49 +01:00 committed by GitHub
commit 2ee193873f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,9 +98,9 @@ if [ ! -f "/home/$USER/conf/web/ssl.$DOMAIN.ca" ]; then
www_host_ip=$(host $www_host | head -n 1 | awk '{print $NF}')
if [ "$www_host_ip" != "$domain_host_ip" ]; then
echo "=== Deleting www"
www_host=""
/usr/local/vesta/bin/v-delete-web-domain-alias "$USER" "$DOMAIN" "$www_host" 'no'
/usr/local/vesta/bin/v-delete-dns-on-web-alias "$USER" "$DOMAIN" "$www_host" 'no'
www_host=""
fi
echo "== Installing LetsEncrypt SSL, please wait..."
/usr/local/vesta/bin/v-add-letsencrypt-domain "$USER" "$DOMAIN" "$www_host" 'yes'