mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-12 06:07:56 +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:
parent
cc649e7378
commit
f5c087cada
@ -8,7 +8,7 @@ if id -u openedx > /dev/null 2>&1; then
|
||||
echo "File permissions set."
|
||||
|
||||
# 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
|
||||
echo "Running openedx-dev as root user"
|
||||
exec "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user