1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fittrackee_ynh.git synced 2024-09-03 18:36:16 +02:00
This commit is contained in:
Thomas 2024-09-01 16:53:09 +02:00 committed by GitHub
parent 69630e37ed
commit 9de3b6655a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 3 deletions

View file

@ -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)

View file

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