From 473765263f5dae92a66edbb9147b729d3fd10245 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 19 Jan 2024 19:47:21 +0100 Subject: [PATCH] fix --- conf/uwsgi.ini | 2 +- scripts/install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/uwsgi.ini b/conf/uwsgi.ini index 9420bb8..56b1bab 100644 --- a/conf/uwsgi.ini +++ b/conf/uwsgi.ini @@ -3,7 +3,7 @@ plugins = python3 master = true protocol = uwsgi socket = /var/run/__APP__/socket -wsgi-file = /etc/uwsgi/apps-available/__APP__.ini +wsgi-file = __INSTALL_DIR__/venv/lib/$weblate_pypath/site-packages/weblate/__APP__.ini # Add path to Weblate checkout if you did not install # Weblate by pip diff --git a/scripts/install b/scripts/install index ae5bc85..02fd61c 100755 --- a/scripts/install +++ b/scripts/install @@ -128,7 +128,7 @@ set_forge_variables ynh_add_config --template="../conf/settings.py" --destination="$settings" ynh_add_config --template="../conf/celery-weblate" --destination="$install_dir/celery-weblate" -ynh_add_config --template="../conf/uwsgi.ini" --destination="/etc/uwsgi/apps-available/$app.ini" +ynh_add_config --template="../conf/uwsgi.ini" --destination="$install_dir/venv/lib/$weblate_pypath/site-packages/weblate/$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"