This commit is contained in:
Papa Dragon 2023-02-28 22:21:26 +01:00
parent 347f57fa37
commit 2fc3e6a442

View file

@ -395,7 +395,7 @@ function configure_daily_update {
function configure_cron_daily { function configure_cron_daily {
print_info "configuring cron..." print_info "configuring cron..."
# every 10 min for Run.php # every 10 min for Run.php
if [[ ! -z $(grep "/var/www/$install_folder; php Code/Daemon/Run.php" /etc/crontab) ]] if [[ -z $(grep "/var/www/$install_folder; php Code/Daemon/Run.php" /etc/crontab) ]]
then then
echo "*/10 * * * * www-data cd $install_path; php Code/Daemon/Run.php Cron >> /dev/null 2>&1" >> /etc/crontab echo "*/10 * * * * www-data cd $install_path; php Code/Daemon/Run.php Cron >> /dev/null 2>&1" >> /etc/crontab
fi fi