mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Update v-activate-rocket-nginx
This commit is contained in:
parent
38ec1b872f
commit
d267a3deaa
1 changed files with 1 additions and 2 deletions
|
@ -112,10 +112,9 @@ else
|
|||
fi
|
||||
|
||||
|
||||
|
||||
# Adding cron job
|
||||
# Check if a cron job already exists for any of the specified PHP-FPM versions
|
||||
existing_cron=$(crontab -l -u $user | grep "*/15.*wp-cron.php.*php[5-8].[6-9]\|8.[0-2]" | grep -v "grep")
|
||||
existing_cron=$(crontab -l -u $user | grep -o "wp-cron.php >/home/$user/web/$domain/cron.log" | grep -v "grep")
|
||||
|
||||
if [ ! -z "$existing_cron" ]; then
|
||||
echo "There is already a cron job added for user $user and domain $domain."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue