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

@ -1,6 +1,6 @@
# Invoice Ninja for YunoHost # Invoice Ninja for YunoHost
[![Integration level](https://dash.yunohost.org/integration/invoiceninja.svg)](https://dash.yunohost.org/appci/app/invoiceninja) [![Integration level](https://dash.yunohost.org/integration/invoiceninja.svg)](https://dash.yunohost.org/appci/app/invoiceninja)
[![Install invoiceninja with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=invoiceninja) [![Install invoiceninja with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=invoiceninja)
> *This package allow you to install invoiceninja quickly and simply on a YunoHost server. > *This package allow you to install invoiceninja quickly and simply on a YunoHost server.
@ -52,11 +52,7 @@ Configuration happens in the application itself.
* Upstream app repository: https://github.com/invoiceninja/invoiceninja * Upstream app repository: https://github.com/invoiceninja/invoiceninja
* YunoHost website: https://yunohost.org/ * YunoHost website: https://yunohost.org/
## TODOs ## TODOs
* Completely configure the env * If possible, create initial user
* Mail settings
* Cronjobs
* Create initial user?
* Test upgrade * 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) # Use logrotate to manage application logfile(s)
ynh_use_logrotate 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 # SETUP FAIL2BAN
#================================================= #=================================================