From ead29975e46e0244a941917351c78fff8781154c Mon Sep 17 00:00:00 2001 From: scith Date: Mon, 22 Aug 2016 00:02:33 +0200 Subject: [PATCH] Fix cron --- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index cbbd39d..ffb019d 100644 --- a/scripts/install +++ b/scripts/install @@ -41,8 +41,8 @@ version='1.1.0' sudo chown -R root: $src_path # Cron - echo "30 * * * * $src_path/public_html/yiic cron hourly >/dev/null 2>&1" > cron - echo "00 18 * * * $src_path/public_html/yiic cron daily >/dev/null 2>&1" > cron + echo "30 * * * * $src_path/protected/yii cron hourly >/dev/null 2>&1" > cron + echo "00 18 * * * $src_path/protected/yii cron daily >/dev/null 2>&1" > cron sudo mv cron /etc/cron.d/${app} sudo chown root /etc/cron.d/${app} diff --git a/scripts/upgrade b/scripts/upgrade index 8385cec..b72b9cf 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -26,8 +26,8 @@ version='1.1.0' sudo chown -R root: $src_path # Cron - echo "30 * * * * $src_path/public_html/yiic cron hourly >/dev/null 2>&1" > cron - echo "00 18 * * * $src_path/public_html/yiic cron daily >/dev/null 2>&1" > cron + echo "30 * * * * $src_path/protected/yii cron hourly >/dev/null 2>&1" > cron + echo "00 18 * * * $src_path/protected/yii cron daily >/dev/null 2>&1" > cron sudo mv cron /etc/cron.d/${app} sudo chown root /etc/cron.d/${app}