Update install-new-roundcube.sh

This commit is contained in:
myvesta 2021-12-19 01:08:43 +01:00 committed by GitHub
commit 90db1084ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,6 +84,7 @@ if [ "$pub_ip" != "$domain_host_ip" ]; then
fi
number_of_files=$(ls /home/$USER/web/$DOMAIN/public_html | wc -l)
if [ $number_of_files -ne 0 ]; then
if [ $number_of_files -eq 2 ] && [ -f "/home/$USER/web/$DOMAIN/public_html/index.html" ] && [ -f "/home/$USER/web/$DOMAIN/public_html/robots.txt" ]; then
rm /home/$USER/web/$DOMAIN/public_html/index.html
rm /home/$USER/web/$DOMAIN/public_html/robots.txt
@ -91,7 +92,7 @@ else
echo "== public_html folder is not empty, aborting."
exit 1
fi
fi
if [ ! -f "/home/$USER/conf/web/ssl.$DOMAIN.ca" ]; then
www_host="www.$DOMAIN"