From 9de3b6655a4816799a996734266184cb41116074 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sun, 1 Sep 2024 16:53:09 +0200 Subject: [PATCH] fix logs --- scripts/change_url | 5 ++--- scripts/upgrade | 8 ++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 7ca224a..26618d1 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -10,9 +10,8 @@ source /usr/share/yunohost/helpers admin=$(ynh_user_get_info --username=$admin --key=username) admin_mail=$(ynh_user_get_info --username=$admin --key=mail) -ynh_app_setting_set_default --key=weather_api_provider --value=$weather_provider - -ynh_app_setting_set_default --key=weather_api_key --value=$weather_key +ynh_app_setting_set_default --key=weather_api_provider --value=$weather_api_provider +ynh_app_setting_set_default --key=weather_api_key --value=$weather_api_key ynh_app_setting_set_default --key=redis_db --value=$(ynh_redis_get_free_db) diff --git a/scripts/upgrade b/scripts/upgrade index b01404b..83aac2c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -80,6 +80,14 @@ ynh_script_progression "Upgrading NGINX web server configuration..." # Create a dedicated NGINX config ynh_config_add_nginx +#================================================= +# LOGROTATE +#================================================= +#temporary fix for installations with wrong permissions for logs +touch /var/log/$app/$app.log +touch /var/log/$app/${app}_workers.log +chown -R $app:www-data /var/log/$app/ + #================================================= # SETUP SYSTEMD #=================================================