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
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
/usr/local/bin/gosu www-data /usr/bin/uwsgi --ini /etc/uwsgi/apps-enabled/web2py.ini
if [ -d /mnt/result/results ]; then
user=$(stat -c '%u' /mnt/result/results)
else
user=www-data
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