6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00

Fix user switching in development mode

This incorrect user switching was (probably) causing permission issues,
as well as incorrect settings.
This commit is contained in:
Régis Behmo 2020-01-08 19:35:57 +01:00
parent cc649e7378
commit f5c087cada

View File

@ -8,7 +8,7 @@ if id -u openedx > /dev/null 2>&1; then
echo "File permissions set." echo "File permissions set."
# Run CMD as user openedx # Run CMD as user openedx
exec chroot --userspec="$openedx:openedx" --skip-chdir / env HOME=/openedx "$@" exec chroot --userspec="openedx:openedx" --skip-chdir / env HOME=/openedx "$@"
else else
echo "Running openedx-dev as root user" echo "Running openedx-dev as root user"
exec "$@" exec "$@"