mirror of
https://github.com/YunoHost-Apps/lufi_ynh.git
synced 2024-09-03 19:36:28 +02:00
Use carton from debian's repositories to avoid inconsistencies if lutim is installed
This commit is contained in:
parent
cbc4e957f3
commit
56c6ce70c5
5 changed files with 8 additions and 14 deletions
|
@ -1,11 +1,11 @@
|
|||
# Génération des statistiques. Tous les jours, à 5h.
|
||||
0 5 * * * __USER__ cd "__FINALPATH__" && /usr/local/bin/carton exec script/lufi cron stats
|
||||
0 5 * * * __USER__ cd "__FINALPATH__" && /usr/bin/carton exec script/lufi cron stats
|
||||
|
||||
# Suppression des adresses IP obsolètes. Tous les jours, à 6h.
|
||||
0 6 * * * __USER__ cd "__FINALPATH__" && /usr/local/bin/carton exec script/lufi cron cleanbdd
|
||||
0 6 * * * __USER__ cd "__FINALPATH__" && /usr/bin/carton exec script/lufi cron cleanbdd
|
||||
|
||||
# Suppression des images dont le délai a expiré. Tous les jours, à 6h.
|
||||
0 6 * * * __USER__ cd "__FINALPATH__" && /usr/local/bin/carton exec script/lufi cron cleanfiles
|
||||
0 6 * * * __USER__ cd "__FINALPATH__" && /usr/bin/carton exec script/lufi cron cleanfiles
|
||||
|
||||
# Vérification de l'occupation du dossier des images. Tous les jours, à 7h.
|
||||
0 7 * * * __USER__ cd "__FINALPATH__" && /usr/local/bin/carton exec script/lufi cron watch
|
||||
0 7 * * * __USER__ cd "__FINALPATH__" && /usr/bin/carton exec script/lufi cron watch
|
||||
|
|
|
@ -10,9 +10,9 @@ User=__APP__
|
|||
Group=__APP__
|
||||
WorkingDirectory=__FINALPATH__
|
||||
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
|
||||
ExecStart=/usr/bin/carton exec hypnotoad script/lufi
|
||||
ExecStop=/usr/bin/carton exec hypnotoad -s script/lufi
|
||||
ExecReload=/usr/bin/carton exec hypnotoad script/lufi
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#=================================================
|
||||
|
||||
# dependencies used by the app
|
||||
pkg_dependencies="build-essential libssl-dev libio-socket-ssl-perl liblwp-protocol-https-perl libpq-dev postgresql cpanminus"
|
||||
pkg_dependencies="build-essential libssl-dev libio-socket-ssl-perl liblwp-protocol-https-perl libpq-dev postgresql carton"
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
|
|
|
@ -88,9 +88,6 @@ ynh_script_progression --message="Installing dependencies..."
|
|||
|
||||
ynh_install_app_dependencies $pkg_dependencies
|
||||
|
||||
# Install Carton
|
||||
echo yes | cpanm Carton
|
||||
|
||||
#=================================================
|
||||
# CREATE A POSTGRESQL DATABASE
|
||||
#=================================================
|
||||
|
|
|
@ -86,9 +86,6 @@ ynh_script_progression --message="Reinstalling dependencies..."
|
|||
# Define and install dependencies
|
||||
ynh_install_app_dependencies $pkg_dependencies
|
||||
|
||||
# Install Carton
|
||||
echo yes | cpanm Carton
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE POSTGRESQL DATABASE
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue