Commit f96633bd authored by Mikael Salson's avatar Mikael Salson

docker/vidjil-server/scripts/ Don't chown result/ and upload/

Those directories may contain sensitive data and may have a huge number of files.
More generally we don't want to modify the external directories

Fixes #3638
parent 6137386b
Pipeline #52576 passed with stages
in 6 minutes and 56 seconds
#!/bin/bash #!/bin/bash
touch /var/vidjil/vidjil.log touch /var/vidjil/vidjil.log
touch /var/vidjil/vidjil-debug.log touch /var/vidjil/vidjil-debug.log
chown -R www-data:www-data /var/vidjil/vidjil* if [ -d /mnt/result/results ]; then
chown -R www-data:www-data /mnt/result user=$(stat -c '%u' /mnt/result/results)
chown -R www-data:www-data /mnt/upload else
chown -R www-data:www-data /usr/share/vidjil/server/web2py/applications/vidjil/databases user=www-data
/usr/local/bin/gosu www-data /usr/bin/uwsgi --ini /etc/uwsgi/apps-enabled/web2py.ini fi
chown -R $user /var/vidjil/vidjil*
chown -R $user /usr/share/vidjil/server/web2py/applications/vidjil/databases
/usr/local/bin/gosu $user /usr/bin/uwsgi --ini /etc/uwsgi/apps-enabled/web2py.ini
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