From f4907c50cb9386c09cb649cc4f78e50b2b5826b0 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Mon, 15 Oct 2018 22:26:37 +0200 Subject: [PATCH] Fix uwsgi folder for reboots --- scripts/_common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 22cc3a4..c8dfa70 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -8,9 +8,9 @@ ynh_check_global_uwsgi_config () { cp ../conf/uwsgi-app@.service /etc/systemd/system/uwsgi-app@.service # make sure the folder for sockets exists and set authorizations - mkdir -p /var/run/uwsgi/ - chown root:www-data /var/run/uwsgi/ - chmod -R 775 /var/run/uwsgi/ + # make sure it exists on every startup + echo "d /var/run/uwsgi 0775 root www-data" > /usr/lib/tmpfiles.d/uwsgi.conf + systemd-tmpfiles --create # make sure the folder for logs exists and set authorizations mkdir -p /var/log/uwsgi/app/