Update v-activate-rocket-nginx.sh

This commit is contained in:
isscbta 2023-02-02 11:37:42 +01:00
commit 1c33f9cfd2

View file

@ -49,6 +49,11 @@ if [ ! -d "/home/$user/web/$domain/public_html" ]; then
exit 1; exit 1;
fi 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 if [ ! -d "/etc/nginx/rocket-nginx" ]; then
echo "rocket-nginx is not installed"; echo "rocket-nginx is not installed";
echo "Do you want to install it now (y/n)?" echo "Do you want to install it now (y/n)?"
@ -77,12 +82,6 @@ else
fi fi
echo "Proxy Template is ready" 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 # Disabling wp-cron in wp-config.php
echo "Disabling WP-Cron in your wp-config.php..." echo "Disabling WP-Cron in your wp-config.php..."
string="define( 'DISABLE_WP_CRON', true );" string="define( 'DISABLE_WP_CRON', true );"