1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shaarli_ynh.git synced 2024-09-03 20:26:10 +02:00

Fix that damn log issue

This commit is contained in:
Alexandre Aubin 2019-09-26 14:21:49 +02:00
parent 2f3c40f2ad
commit b515e255d3
2 changed files with 7 additions and 1 deletions

View file

@ -152,6 +152,8 @@ ynh_print_info "Configuring log rotation..."
### - And the section "SETUP LOGROTATE" in the upgrade script
# Use logrotate to manage application logfile(s)
# We gotta create the file explicitly to avoid triggering https://github.com/YunoHost/issues/issues/1390
touch "$final_path/data/log.txt"
ynh_use_logrotate "$final_path/data/log.txt"

View file

@ -130,7 +130,11 @@ ynh_print_info "Upgrading logrotate configuration..."
# Use logrotate to manage app-specific logfile(s)
# Temporary fix for .txt log file and ynh_use_logrotate
ln -s "$final_path/data/log.txt" "$final_path/data/log.log"
if [ -d "$final_path/data/log.txt" ]
then
rm -r "$final_path/data/log.txt"
touch "$final_path/data/log.txt"
fi
ynh_use_logrotate --non-append
#=================================================