nix/docker/heptapod: can't do that like that :(
This commit is contained in:
parent
09a6c8cafe
commit
a598fd0e53
1 changed files with 4 additions and 4 deletions
|
@ -24,10 +24,10 @@ in pkgs.dockerTools.buildImage rec {
|
||||||
runAsRoot = ''
|
runAsRoot = ''
|
||||||
#!{pkgs.runtimeShell}
|
#!{pkgs.runtimeShell}
|
||||||
cat <<"EOF" >/assets/wrapper_wrapper
|
cat <<"EOF" >/assets/wrapper_wrapper
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
/usr/bin/id hg || /usr/sbin/useradd -g $(id -u git) -u $(id -g git) -o -d /var/opt/gitlab -p "*" hg
|
/usr/bin/id hg || /usr/sbin/useradd -g $(id -u git) -u $(id -g git) -o -d /var/opt/gitlab -p "*" hg
|
||||||
/usr/bin/grep "AllowUsers git hg" /assets/sshd_config || /bin/sed -i "s/AllowUsers git/AllowUsers git hg/" /assets/sshd_config
|
/usr/bin/grep "AllowUsers git hg" /assets/sshd_config || /bin/sed -i "s/AllowUsers git/AllowUsers git hg/" /assets/sshd_config
|
||||||
exec /assets/wrapper "$@"
|
exec /assets/wrapper "$@"
|
||||||
EOF
|
EOF
|
||||||
chmod ugo=rx /assets/wrapper_wrapper
|
chmod ugo=rx /assets/wrapper_wrapper
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue