mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-15 04:16:57 +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 \
|
||||
-m \
|
||||
${if is-admin then "-G ${jupyterAdminGroup}" else ""} \
|
||||
-p $(printf "%q" $(cat /pw/hashed-password-${user})) \
|
||||
${user} \
|
||||
-p $(cat /pw/hashed-password-${user}) \
|
||||
&& ln -s /workdir /home/${user}/shared-workdir \
|
||||
'');
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user