properly escape the password

This commit is contained in:
oxapentane - 2023-06-09 22:45:03 +02:00
parent 86ecdf2a4f
commit a848059fbc
Signed by: oxapentane
GPG Key ID: 91FA5E5BF9AA901C
1 changed files with 1 additions and 1 deletions

View File

@ -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 \
'');