mirror of
https://github.com/YunoHost-Apps/mopidy_ynh.git
synced 2024-09-03 19:46:21 +02:00
[fix] install logrotate
This commit is contained in:
parent
221337ff25
commit
864c5397bc
2 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ ynh_remove_app_dependencies () {
|
||||||
#
|
#
|
||||||
# It's possible to use this helper several times, each config will added to same logrotate config file.
|
# It's possible to use this helper several times, each config will added to same logrotate config file.
|
||||||
ynh_use_logrotate () {
|
ynh_use_logrotate () {
|
||||||
if [ -n "$1" ]; then
|
if [ "$#" -gt 0 ]; then
|
||||||
if [ "$(echo ${1##*.})" == "log" ]; then # Keep only the extension to check if it's a logfile
|
if [ "$(echo ${1##*.})" == "log" ]; then # Keep only the extension to check if it's a logfile
|
||||||
logfile=$1 # In this case, focus logrotate on the logfile
|
logfile=$1 # In this case, focus logrotate on the logfile
|
||||||
else
|
else
|
||||||
|
|
|
@ -141,7 +141,7 @@ sudo systemctl reload nginx
|
||||||
sudo yunohost service add mopidy --log "/var/log/${app}/mopidy.log"
|
sudo yunohost service add mopidy --log "/var/log/${app}/mopidy.log"
|
||||||
|
|
||||||
# Add logrotate
|
# Add logrotate
|
||||||
ynh_use_logrotate $app
|
ynh_use_logrotate
|
||||||
|
|
||||||
# Reload SSOwat configuration
|
# Reload SSOwat configuration
|
||||||
sudo yunohost app ssowatconf
|
sudo yunohost app ssowatconf
|
Loading…
Add table
Reference in a new issue