From a848059fbc170986641f959ddb32874b8f884241 Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Fri, 9 Jun 2023 22:45:03 +0200 Subject: [PATCH] properly escape the password --- hosts/uranus/jupyter-container.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/uranus/jupyter-container.nix b/hosts/uranus/jupyter-container.nix index 4def45f..64b0efa 100644 --- a/hosts/uranus/jupyter-container.nix +++ b/hosts/uranus/jupyter-container.nix @@ -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 \ '');