mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
fix logs
This commit is contained in:
parent
69630e37ed
commit
9de3b6655a
2 changed files with 10 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue