mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-18 05:36:05 +02:00
properly escape the password
This commit is contained in:
parent
86ecdf2a4f
commit
a848059fbc
|
@ -27,8 +27,8 @@ pkgs.dockerTools.buildImage {
|
||||||
useradd-string = (user: is-admin: ''useradd \
|
useradd-string = (user: is-admin: ''useradd \
|
||||||
-m \
|
-m \
|
||||||
${if is-admin then "-G ${jupyterAdminGroup}" else ""} \
|
${if is-admin then "-G ${jupyterAdminGroup}" else ""} \
|
||||||
|
-p $(printf "%q" $(cat /pw/hashed-password-${user})) \
|
||||||
${user} \
|
${user} \
|
||||||
-p $(cat /pw/hashed-password-${user}) \
|
|
||||||
&& ln -s /workdir /home/${user}/shared-workdir \
|
&& ln -s /workdir /home/${user}/shared-workdir \
|
||||||
'');
|
'');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user