diff --git a/manifest.json b/manifest.json index 3d3ee9a..ae85bff 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "id": "shaarli", "packaging_format": 1, "requirements": { - "yunohost": ">= 3.0.0" + "yunohost": ">= 3.6.5" }, "description": { "en": "The personal, minimalist, super-fast, no-database delicious clone", @@ -16,7 +16,7 @@ }, "url": "https://github.com/shaarli/Shaarli", "license": "MIT", - "version": "0.10.4~ynh2", + "version": "0.10.4~ynh3", "multi_instance": true, "services": [ "nginx", diff --git a/scripts/install b/scripts/install index 2e4922e..aa7de30 100644 --- a/scripts/install +++ b/scripts/install @@ -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" diff --git a/scripts/upgrade b/scripts/upgrade index 3a42927..3205547 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -129,6 +129,12 @@ ynh_add_fpm_config ynh_print_info "Upgrading logrotate configuration..." # Use logrotate to manage app-specific logfile(s) +# Temporary fix for .txt log file and ynh_use_logrotate +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 #=================================================