From 0959110992af5bafbc35caca9b9417bf517f4ff2 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Thu, 8 Apr 2021 21:38:53 +0200 Subject: [PATCH] Remount /tmp exec for pretix pip installation --- uwsgi-python/tasks/app.yml | 8 ++++++++ uwsgi-python/vars/pretix.yml | 1 + 2 files changed, 9 insertions(+) diff --git a/uwsgi-python/tasks/app.yml b/uwsgi-python/tasks/app.yml index d5285dd..c0ff9a5 100644 --- a/uwsgi-python/tasks/app.yml +++ b/uwsgi-python/tasks/app.yml @@ -202,6 +202,10 @@ - "{{ app.app }}" - "{{ app.instance }}" +- name: remount /tmp exec # noqa 303 503 + command: mount -o rw,remount,exec /tmp + when: app_exectmp|default(false) + - name: ensure we have a virtualenv # noqa 403 pip: requirements: "{{ app_path }}/{{ app_requirements_file }}" @@ -238,6 +242,10 @@ - "{{ app.app }}" - "{{ app.instance }}" +- name: remount /tmp exec # noqa 303 503 + command: mount -o rw,remount,noexec /tmp + when: app_exectmp|default(false) + - name: Create bundler directories with user permissions file: path: "{{ item }}" diff --git a/uwsgi-python/vars/pretix.yml b/uwsgi-python/vars/pretix.yml index 9db49bd..292cb2d 100644 --- a/uwsgi-python/vars/pretix.yml +++ b/uwsgi-python/vars/pretix.yml @@ -42,6 +42,7 @@ app_git_version: 'stable' # release/2.4.x app_git_pip: true app_git_pip_query: '#egg=pretix&subdirectory=src' app_requirements_file: '' +app_exectmp: true app_config_file: 'pretix.cfg' app_secret_config: false -- GitLab