1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invoiceninja_ynh.git synced 2024-09-03 19:26:22 +02:00

add cronjobs

This commit is contained in:
Sebastian Gumprich 2020-05-09 21:20:43 +02:00
parent ae2c825578
commit 3e2a288ad7
3 changed files with 15 additions and 6 deletions

View file

@ -52,11 +52,7 @@ Configuration happens in the application itself.
* Upstream app repository: https://github.com/invoiceninja/invoiceninja
* YunoHost website: https://yunohost.org/
## TODOs
* Completely configure the env
* Mail settings
* Cronjobs
* Create initial user?
* If possible, create initial user
* Test upgrade

3
conf/invoiceninja.cron Normal file
View file

@ -0,0 +1,3 @@
0 8 * * * /var/www/invoiceninja/artisan ninja:send-invoices
0 8 * * * /var/www/invoiceninja/artisan ninja:send-reminders

View file

@ -239,6 +239,16 @@ ynh_script_progression --message="Configuring log rotation..." --time --weight=1
# Use logrotate to manage application logfile(s)
ynh_use_logrotate
#=================================================
# ADD A CRON JOB
#=================================================
cron_path="/etc/cron.d/$app"
cp -a ../conf/invoiceninja.cron "$cron_path"
chown root: "$cron_path"
chmod 644 "$cron_path"
#=================================================
# SETUP FAIL2BAN
#=================================================