mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 22:04:01 -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
|
fi
|
||||||
|
|
||||||
number_of_files=$(ls /home/$USER/web/$DOMAIN/public_html | wc -l)
|
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
|
if [ $number_of_files -ne 0 ]; then
|
||||||
rm /home/$USER/web/$DOMAIN/public_html/index.html
|
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/robots.txt
|
rm /home/$USER/web/$DOMAIN/public_html/index.html
|
||||||
else
|
rm /home/$USER/web/$DOMAIN/public_html/robots.txt
|
||||||
echo "== public_html folder is not empty, aborting."
|
else
|
||||||
exit 1
|
echo "== public_html folder is not empty, aborting."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ ! -f "/home/$USER/conf/web/ssl.$DOMAIN.ca" ]; then
|
if [ ! -f "/home/$USER/conf/web/ssl.$DOMAIN.ca" ]; then
|
||||||
www_host="www.$DOMAIN"
|
www_host="www.$DOMAIN"
|
||||||
www_host_ip=$(host $www_host | head -n 1 | awk '{print $NF}')
|
www_host_ip=$(host $www_host | head -n 1 | awk '{print $NF}')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue