mirror of
https://github.com/YunoHost-Apps/streams_ynh.git
synced 2024-09-03 20:26:20 +02:00
Cronjobs & daily update script rework
This commit is contained in:
parent
8a1cee9523
commit
ea2cd88eb1
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue