mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 22:04:00 -07:00
Update install-new-roundcube.sh
This commit is contained in:
parent
2ee193873f
commit
90db1084ec
1 changed files with 8 additions and 7 deletions
|
@ -84,15 +84,16 @@ if [ "$pub_ip" != "$domain_host_ip" ]; then
|
|||
fi
|
||||
|
||||
number_of_files=$(ls /home/$USER/web/$DOMAIN/public_html | wc -l)
|
||||
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
|
||||
else
|
||||
echo "== public_html folder is not empty, aborting."
|
||||
exit 1
|
||||
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
|
||||
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"
|
||||
www_host_ip=$(host $www_host | head -n 1 | awk '{print $NF}')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue