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 #=================================================