Commit ba1ddd5d authored by marc's avatar marc

alter ownership of /etc/vidjil in containers

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

See #4097

# Conflicts:
#	docker/vidjil-server/scripts/uwsgi-entrypoint.sh
parent a465d999
Pipeline #112598 failed with stage
in 1 second
......@@ -49,7 +49,7 @@ services:
workers:
image: vidjil/server:latest
command: /usr/local/bin/gosu www-data python /usr/share/vidjil/server/web2py/web2py.py -K vidjil,vidjil,vidjil
command: bash /entrypoints/workers-entrypoint.sh
volumes_from:
- uwsgi
depends_on:
......
......@@ -8,4 +8,11 @@ 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
python -c "from gluon.main import save_password; save_password('${WEB2PY_ADMIN_PASSWORD}', 443)"
fi
/usr/local/bin/gosu $user /usr/bin/uwsgi --ini /etc/uwsgi/apps-enabled/web2py.ini
#!/bin/bash
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