Commit 055b45da authored by Ryan Herbert's avatar Ryan Herbert

docker/vidjil/Dockerfile recreate vidjil log files

vidjil log files were being removed by dockre volumes. recreating them
in the uwsgi entrypoint script allows us to ensure they exist
parent ed181ad5
......@@ -58,4 +58,5 @@ copy ./scripts/nginx-entrypoint.sh /entrypoints/nginx-entrypoint.sh
copy ./scripts/uwsgi-entrypoint.sh /entrypoints/uwsgi-entrypoint.sh
copy ./scripts/fuse-entrypoint.sh /entrypoints/fuse-entrypoint.sh
run mkdir /usr/share/vidjil/server/web2py/applications/vidjil/databases && touch /usr/share/vidjil/server/web2py/applications/vidjil/databases/sql.log
run touch /var/vidjil/vidjil.log && touch /var/vidjil/vidjil-debug.log
run adduser vidjil && usermod -aG sudo vidjil
#!/bin/bash
touch /var/vidjil/vidjil.log
touch /var/vidjil/vidjil-debug.log
chown -R www-data:www-data /var/vidjil/vidjil*
chown -R www-data:www-data /mnt/result
chown -R www-data:www-data /mnt/upload
chown -R www-data:www-data /usr/share/vidjil/server/web2py/applications/vidjil/databases
......
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