summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2021-07-09 15:44:56 +0200
committerJonathan Bauer2021-07-09 15:44:56 +0200
commitca2ebc11c9df4a1f0dc3711a061abaebe92db126 (patch)
treeb293a8c9df7b85336e02d43418ae4eafc4afcaaf
parentautoclone: Fix path -C (diff)
downloadmltk-ca2ebc11c9df4a1f0dc3711a061abaebe92db126.tar.gz
mltk-ca2ebc11c9df4a1f0dc3711a061abaebe92db126.tar.xz
mltk-ca2ebc11c9df4a1f0dc3711a061abaebe92db126.zip
[demo-user] add module for demo user
-rw-r--r--core/modules/demo-user/module.build13
-rw-r--r--core/modules/demo-user/module.conf4
2 files changed, 17 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..92c3dde3
--- /dev/null
+++ b/core/modules/demo-user/module.build
@@ -0,0 +1,13 @@
+#!/bin/bash
+fetch_source() {
+ :
+}
+
+build() {
+ :
+}
+
+post_copy() {
+ DEMO_ID="$(USER=demo PASSWORD= USERHOME=/home/demo USERSHELL=/bin/bash add_user)"
+ [ -n "$DEMO_ID" ] && pinfo "Created user demo"
+}
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=""