From 702b976f4f767b566acba372eec9d212746e3187 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 30 Sep 2024 19:30:18 +0200 Subject: [PATCH] fix uwsgi --- scripts/install | 1 + scripts/upgrade | 1 + 2 files changed, 2 insertions(+) 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"