1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00

Fix uwsgi folder for reboots

This commit is contained in:
Jean-Baptiste Holcroft 2018-10-15 22:26:37 +02:00
parent ee27947a0b
commit f4907c50cb

View file

@ -8,9 +8,9 @@ ynh_check_global_uwsgi_config () {
cp ../conf/uwsgi-app@.service /etc/systemd/system/uwsgi-app@.service cp ../conf/uwsgi-app@.service /etc/systemd/system/uwsgi-app@.service
# make sure the folder for sockets exists and set authorizations # make sure the folder for sockets exists and set authorizations
mkdir -p /var/run/uwsgi/ # make sure it exists on every startup
chown root:www-data /var/run/uwsgi/ echo "d /var/run/uwsgi 0775 root www-data" > /usr/lib/tmpfiles.d/uwsgi.conf
chmod -R 775 /var/run/uwsgi/ systemd-tmpfiles --create
# make sure the folder for logs exists and set authorizations # make sure the folder for logs exists and set authorizations
mkdir -p /var/log/uwsgi/app/ mkdir -p /var/log/uwsgi/app/