Commit cb79ebbe authored by Ryan Herbert's avatar Ryan Herbert

alter ownership of /etc/vidjil in containers

for permission reasons, make sure the /etc/vidjil directory belongs to
the containers

See #4097
parent a81841ad
Pipeline #108266 failed with stages
in 8 minutes and 27 seconds
......@@ -8,6 +8,7 @@ else
fi
chown -R $user /var/vidjil/vidjil*
chown -R $user /usr/share/vidjil/server/web2py/applications/vidjil/databases
chown -R $user /etc/vidjil
if [[ -n "$WEB2PY_ADMIN_PASSWORD" ]]; then
cd /usr/share/vidjil/server/web2py
......
#!/bin/bash
chown -R www-data:www-data /usr/share/vidjil/server/web2py/applications/vidjil/databases
if [ -d /mnt/result/results ]; then
user=$(stat -c '%u' /mnt/result/results)
else
user=www-data
fi
chown -R $user /usr/share/vidjil/server/web2py/applications/vidjil/databases
chown -R $user /etc/vidjil
touch /usr/share/vidjil/server/web2py/applications/vidjil/databases/sql.log
/usr/local/bin/gosu www-data python /usr/share/vidjil/server/web2py/web2py.py -K vidjil,vidjil,vidjil
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