diff options
author | Simon Rettberg | 2021-07-27 14:35:05 +0200 |
---|---|---|
committer | root | 2021-07-27 14:35:05 +0200 |
commit | 001ec398728afacd1e639c83fa7eea9dba091fc1 (patch) | |
tree | 444d51f15e5744baad0d3b9a5533fd7bfb23a549 /core/modules/demo-user/module.build | |
parent | [dhcpc-busybox] Fix paths, extglob (diff) | |
download | mltk-001ec398728afacd1e639c83fa7eea9dba091fc1.tar.gz mltk-001ec398728afacd1e639c83fa7eea9dba091fc1.tar.xz mltk-001ec398728afacd1e639c83fa7eea9dba091fc1.zip |
useradd.inc: Rewrite helper once again
Diffstat (limited to 'core/modules/demo-user/module.build')
-rw-r--r-- | core/modules/demo-user/module.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/demo-user/module.build b/core/modules/demo-user/module.build index 92c3dde3..d32a6cb4 100644 --- a/core/modules/demo-user/module.build +++ b/core/modules/demo-user/module.build @@ -8,6 +8,6 @@ build() { } post_copy() { - DEMO_ID="$(USER=demo PASSWORD= USERHOME=/home/demo USERSHELL=/bin/bash add_user)" - [ -n "$DEMO_ID" ] && pinfo "Created user demo" + useradd --system --user-group --shell /bin/bash --create-home --password "" demo + pinfo "Created user demo" } |