diff --git a/conf/cronjobs b/conf/cronjobs index 43f335d..79d98e2 100644 --- a/conf/cronjobs +++ b/conf/cronjobs @@ -1,4 +1,4 @@ # Run poller periodically to update your website */10 * * * * __APP__ /usr/bin/php__PHPVERSION__ -f Code/Daemon/Run.php Cron > /dev/null 2>&1 # Daily software update job -30 05 * * * __APP__ /bin/bash __DATA_DIR__/daily-update.sh >> __DATA_DIR__/daily-updates.log 2>&1 +30 05 * * * root /bin/bash __DATA_DIR__/daily-update.sh >> __DATA_DIR__/daily-updates.log 2>&1 diff --git a/conf/daily-update.sh b/conf/daily-update.sh index faf36ba..39b9618 100644 --- a/conf/daily-update.sh +++ b/conf/daily-update.sh @@ -6,7 +6,6 @@ echo " " echo "$(date) - db size." du -h /var/lib/mysql/__APP__ # -cd /var/www/__APP__ -/usr/bin/php__PHPVERSION__ util/udall +(cd /var/www/__APP__ ; sudo -u streams util/udall) echo "$(date) - Daily update finished." diff --git a/scripts/install b/scripts/install index b0bec9a..c100953 100755 --- a/scripts/install +++ b/scripts/install @@ -77,7 +77,8 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Pulling in external libraries with Composer..." -ynh_install_composer +#ynh_install_composer +composer install #================================================= # SPECIFIC SETUP