Last active
July 10, 2023 12:06
-
-
Save lucassmacedo/a1101a0d094d640cadff85a88a8a49a7 to your computer and use it in GitHub Desktop.
Liga o cron do magento caso esteja offline.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /home/ubuntu/evolusom/ | |
status=$(./bin/cron status) | |
if echo "$status" | grep -q "FAIL"; then | |
echo "O serviço cron está inativo. Iniciando o cron..." | |
./bin/cron start | |
else | |
echo "O serviço cron já está em execução." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment