Cron updates

This commit is contained in:
Andrei Condurachi 2020-11-21 17:49:08 +02:00
parent 1bc984aedc
commit 928f671be7
1 changed files with 3 additions and 1 deletions

4
run.sh
View File

@ -1,7 +1,9 @@
#!/bin/sh
# Create cron job for Grav maintenance scripts
exec (crontab -l; echo "* * * * * cd /var/www/html;/usr/local/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -
(crontab -l; echo "* * * * * cd /var/www/html;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -
# Cron requires that each entry in a crontab end in a newline character. If the last entry in a crontab is missing the newline, cron will consider the crontab (at least partially) broken and refuse to install it.
(crontab -l; echo "") | crontab -
# Start PHP-FPM and Apache
exec /usr/sbin/httpd -D FOREGROUND -f /etc/apache2/httpd.conf &