mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
Update v-activate-rocket-nginx.sh
This commit is contained in:
parent
2d8fc21ba7
commit
1c33f9cfd2
1 changed files with 5 additions and 6 deletions
|
@ -49,6 +49,11 @@ if [ ! -d "/home/$user/web/$domain/public_html" ]; then
|
|||
exit 1;
|
||||
fi
|
||||
|
||||
if [ ! -f "/home/$user/web/$domain/public_html/wp-config.php" ]; then
|
||||
echo 'Please install WordPress first.'
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
if [ ! -d "/etc/nginx/rocket-nginx" ]; then
|
||||
echo "rocket-nginx is not installed";
|
||||
echo "Do you want to install it now (y/n)?"
|
||||
|
@ -77,12 +82,6 @@ else
|
|||
fi
|
||||
echo "Proxy Template is ready"
|
||||
|
||||
# Checking if the website is WordPress
|
||||
if [ ! -f "/home/$user/web/$domain/public_html/wp-config.php" ]; then
|
||||
echo 'Please install WordPress first.'
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
# Disabling wp-cron in wp-config.php
|
||||
echo "Disabling WP-Cron in your wp-config.php..."
|
||||
string="define( 'DISABLE_WP_CRON', true );"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue