Commit dac04142 authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch 'feature-s/3638-no-chown-on-directories' into 'dev'

Don't chown result/ and upload/

Closes #3638

See merge request !368
parents 6137386b f96633bd
Pipeline #52787 failed with stages
in 1 minute and 35 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