diff options
author | Jonathan Bauer | 2021-04-06 17:53:18 +0200 |
---|---|---|
committer | Jonathan Bauer | 2021-04-06 17:53:18 +0200 |
commit | e07609c91da53dd8eaf6c72b15ec030068dfd184 (patch) | |
tree | 99eca00945da28765efee95da1de4602b8969a19 | |
parent | Merge branch 'master' into installer (diff) | |
download | mltk-e07609c91da53dd8eaf6c72b15ec030068dfd184.tar.gz mltk-e07609c91da53dd8eaf6c72b15ec030068dfd184.tar.xz mltk-e07609c91da53dd8eaf6c72b15ec030068dfd184.zip |
[demo-user] new module to create demo user
-rw-r--r-- | core/modules/demo-user/module.build | 15 | ||||
-rw-r--r-- | core/modules/demo-user/module.conf | 4 | ||||
l--------- | core/targets/bwlp/demo-user | 1 |
3 files changed, 20 insertions, 0 deletions
diff --git a/core/modules/demo-user/module.build b/core/modules/demo-user/module.build new file mode 100644 index 00000000..91a9af21 --- /dev/null +++ b/core/modules/demo-user/module.build @@ -0,0 +1,15 @@ +#!/bin/bash +fetch_source() { + : +} + +build() { + : +} + +post_copy() { + set -x + DEMO_ID="$(USER=demo PASSWORD= USERHOME=/home/demo USERSHELL=/bin/bash add_user)" + [ -n "$DEMO_ID" ] && pinfo "Created user demo" + set +x +} diff --git a/core/modules/demo-user/module.conf b/core/modules/demo-user/module.conf new file mode 100644 index 00000000..8811668a --- /dev/null +++ b/core/modules/demo-user/module.conf @@ -0,0 +1,4 @@ +#!/bin/bash +REQUIRED_BINARIES="" +REQUIRED_LIBRARIES="" +REQUIRED_DIRECTORIES="" diff --git a/core/targets/bwlp/demo-user b/core/targets/bwlp/demo-user new file mode 120000 index 00000000..4629e7c2 --- /dev/null +++ b/core/targets/bwlp/demo-user @@ -0,0 +1 @@ +../../modules/demo-user
\ No newline at end of file |