mirror of
https://github.com/YunoHost-Apps/lufi_ynh.git
synced 2024-09-03 19:36:28 +02:00
Merge branch 'master' into fix-buster
This commit is contained in:
commit
de132f542c
4 changed files with 8 additions and 7 deletions
|
@ -1,11 +1,11 @@
|
|||
# Génération des statistiques. Tous les jours, à 5h.
|
||||
0 5 * * * www-data cd "__FINALPATH__" && /usr/local/bin/carton exec script/lufi cron stats
|
||||
0 5 * * * __USER__ cd "__FINALPATH__" && /usr/local/bin/carton exec script/lufi cron stats
|
||||
|
||||
# Suppression des adresses IP obsolètes. Tous les jours, à 6h.
|
||||
0 6 * * * www-data cd "__FINALPATH__" && /usr/local/bin/carton exec script/lufi cron cleanbdd
|
||||
0 6 * * * __USER__ cd "__FINALPATH__" && /usr/local/bin/carton exec script/lufi cron cleanbdd
|
||||
|
||||
# Suppression des images dont le délai a expiré. Tous les jours, à 6h.
|
||||
0 6 * * * www-data cd "__FINALPATH__" && /usr/local/bin/carton exec script/lufi cron cleanfiles
|
||||
0 6 * * * __USER__ cd "__FINALPATH__" && /usr/local/bin/carton exec script/lufi cron cleanfiles
|
||||
|
||||
# Vérification de l'occupation du dossier des images. Tous les jours, à 7h.
|
||||
0 7 * * * www-data cd "__FINALPATH__" && /usr/local/bin/carton exec script/lufi cron watch
|
||||
0 7 * * * __USER__ cd "__FINALPATH__" && /usr/local/bin/carton exec script/lufi cron watch
|
||||
|
|
|
@ -5,12 +5,11 @@ Requires=network.target
|
|||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Type=forking
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
RemainAfterExit=yes
|
||||
WorkingDirectory=__FINALPATH__
|
||||
PIDFile=__FINALPATH__script/hypnotoad.pid
|
||||
PIDFile=__FINALPATH__/script/hypnotoad.pid
|
||||
ExecStart=/usr/local/bin/carton exec hypnotoad script/lufi
|
||||
ExecStop=/usr/local/bin/carton exec hypnotoad -s script/lufi
|
||||
ExecReload=/usr/local/bin/carton exec hypnotoad script/lufi
|
||||
|
|
|
@ -176,6 +176,7 @@ ynh_print_info --message="Setuping a cron..."
|
|||
|
||||
cp ../conf/cron_lufi /etc/cron.d/$app
|
||||
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path/" --target_file="/etc/cron.d/$app"
|
||||
ynh_replace_string --match_string="__USER__" --replace_string"$app" --target_file="/etc/cron.d/$app"
|
||||
chmod +x $final_path/script/lufi
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -205,6 +205,7 @@ ynh_print_info --message="Setuping cron..."
|
|||
|
||||
cp ../conf/cron_lufi /etc/cron.d/$app
|
||||
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path/" --target_file="/etc/cron.d/$app"
|
||||
ynh_replace_string --match_string="__USER__" --replace_string"$app" --target_file="/etc/cron.d/$app"
|
||||
chmod +x $final_path/script/lufi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue