force the linking and insure the proper access to home folder

This commit is contained in:
oxapentane - 2023-06-11 00:42:03 +02:00
parent ef0f6cc5e0
commit 4b0d698140
Signed by: oxapentane
GPG Key ID: 91FA5E5BF9AA901C
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ pkgs.dockerTools.buildImage {
${if is-admin then "-G ${jupyterAdminGroup}" else ""} \
-p $(cat /pw/hashed-password-${user}) \
${user} \
&& ln -s /workdir /home/${user}/shared-workdir \
&& chown -R ${user}:${jupyterAdminGroup} /home/${user} \
&& ln --force -s /workdir /home/${user}/shared-workdir
'');
create-all-users-script = (lib.strings.concatStringsSep "\n" (builtins.map (u: (useradd-string u.username u.isAdmin)) jupyterUsers));