diff --git a/scripts/install b/scripts/install index 1bf70d0..55d02c4 100755 --- a/scripts/install +++ b/scripts/install @@ -118,6 +118,7 @@ set_forge_variables ynh_config_add --template="settings.py" --destination="$settings" ynh_config_add --template="celery-weblate" --destination="$install_dir/celery-weblate" ynh_config_add --template="uwsgi.ini" --destination="/etc/uwsgi/apps-available/$app.ini" +chmod 600 "/etc/uwsgi/apps-available/$app.ini" touch "$install_dir/local_settings.py" ln -sf "$install_dir/local_settings.py" "$install_dir/venv/lib/$weblate_pypath/site-packages/weblate/local_settings.py" diff --git a/scripts/upgrade b/scripts/upgrade index 18afb8a..b777037 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -79,6 +79,7 @@ fi ynh_script_progression "Updating configuration..." ynh_config_add --template="uwsgi.ini" --destination="/etc/uwsgi/apps-available/$app.ini" +chmod 600 "/etc/uwsgi/apps-available/$app.ini" ynh_config_add --template="celery-weblate" --destination="$install_dir/celery-weblate"