diff --git a/scripts/install b/scripts/install index c57b44e..21525bc 100644 --- a/scripts/install +++ b/scripts/install @@ -347,7 +347,8 @@ systemctl enable zabbix-server && systemctl start zabbix-server ### - And the section "SETUP LOGROTATE" in the upgrade script # Use logrotate to manage application logfile(s) -ynh_use_logrotate +#native logrotate because install officials packages. +#ynh_use_logrotate #================================================= # ADVERTISE SERVICE IN ADMIN PANEL diff --git a/scripts/upgrade b/scripts/upgrade index ab2d3a8..7c1cce4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -14,7 +14,7 @@ source /usr/share/yunohost/helpers #================================================= app=$YNH_APP_INSTANCE_NAME -trustedversion="4.0.3-1+stretch" +trustedversion="1:4.0.4-1+stretch" domain=$(ynh_app_setting_get $app domain) path_url=$(ynh_app_setting_get $app path) admin=$(ynh_app_setting_get $app admin) @@ -94,6 +94,9 @@ path_url=$(ynh_normalize_url_path $path_url) ynh_package_update +#REMOVE DUPLICATE LOG ENTRY IN LOGROTATE PATCH IF NEEDED +ynh_remove_logrotate + zabbixServerInstalledVersion=$(apt-cache policy zabbix-server-mysql | grep -Po "Installed: \K(.*)") zabbixServerCandidateVersion=$(apt-cache policy zabbix-server-mysql | grep -Po "Candidate: \K(.*)")