mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix IMPERSONATE=false
This commit is contained in:
@@ -21,7 +21,7 @@ monad-docker-run()
|
||||
--workdir /opt/scripts \
|
||||
$CONSOLE \
|
||||
andschwa/magrathea:latest \
|
||||
bash -c "$(monad-impersonate) -- bash -c '$*'"
|
||||
bash -c "$(monad-impersonate) bash -c '$*'"
|
||||
}
|
||||
|
||||
# creates new user in container matching the local user so that
|
||||
@@ -38,5 +38,5 @@ monad-impersonate()
|
||||
echo \
|
||||
groupadd -g $CGID $CGROUP '&&' \
|
||||
useradd -u $CUID -g $CGID -d /opt $CUSER '&&' \
|
||||
sudo --set-home -u $CUSER -g $CGROUP
|
||||
sudo --set-home -u $CUSER -g $CGROUP --
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user