Commit ab3ba369 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] rights for logs when starting uwsgi.

parent 1ae6b13b
#!/bin/bash #!/bin/bash
# Script to start uwsgi
# TODO do it as sudo or simple user ?
# Creat the log file at current time
FILE="/var/log/gargantext/uwsgi/$(date +%Y%m%d-%H:%M:%S).log" FILE="/var/log/gargantext/uwsgi/$(date +%Y%m%d-%H:%M:%S).log"
#touch /var/log/gargantext/uwsgi/$FILE && sudo touch ${FILE}
sudo uwsgi gargantext.ini --logto $FILE
# add a group here
chmod o+r ${FILE}
# finally start the server with that log file
uwsgi gargantext.ini --logto ${FILE}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment