diff --git a/conf/cronjobs b/conf/cronjobs index 79d98e2..43f335d 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 * * * root /bin/bash __DATA_DIR__/daily-update.sh >> __DATA_DIR__/daily-updates.log 2>&1 +30 05 * * * __APP__ /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 39b9618..1a4080e 100644 --- a/conf/daily-update.sh +++ b/conf/daily-update.sh @@ -3,9 +3,7 @@ echo " " echo "+++ $(date) +++" echo " " -echo "$(date) - db size." -du -h /var/lib/mysql/__APP__ -# +echo "$(date) - Updating website..." (cd /var/www/__APP__ ; sudo -u streams util/udall) echo "$(date) - Daily update finished." diff --git a/scripts/install b/scripts/install index 9b18ade..2dca129 100755 --- a/scripts/install +++ b/scripts/install @@ -58,7 +58,6 @@ mkdir -p "$install_dir/store" mkdir -p "$install_dir/cache/smarty3" chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" chmod -R 775 $install_dir/store $install_dir/cache #================================================= @@ -78,6 +77,8 @@ ynh_add_nginx_config ynh_script_progression --message="Pulling in external libraries with Composer..." ynh_install_composer --workdir="$install_dir" +chown -R $app:www-data "$install_dir" + pushd $install_dir ynh_exec_as $app util/add_addon_repo https://codeberg.org/streams/streams-addons.git zaddons popd