diff options
author | Simon Rettberg | 2013-02-21 16:15:53 +0100 |
---|---|---|
committer | Simon Rettberg | 2013-02-21 16:15:53 +0100 |
commit | 5df4333057e050587225d3aab9241d8035444f78 (patch) | |
tree | 83f1fee9b86e5d0ad6c33d570c6963c9b6df94fa /remote/tools/policykit/policykit.build | |
parent | Merge branch 'master' of ssh://openslx/openslx-ng/tm-scripts (diff) | |
download | tm-scripts-5df4333057e050587225d3aab9241d8035444f78.tar.gz tm-scripts-5df4333057e050587225d3aab9241d8035444f78.tar.xz tm-scripts-5df4333057e050587225d3aab9241d8035444f78.zip |
Add add_user function to add users and groups to the system
Add qnd_exit to stop the entire mltk script from within a function
Diffstat (limited to 'remote/tools/policykit/policykit.build')
-rw-r--r-- | remote/tools/policykit/policykit.build | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/remote/tools/policykit/policykit.build b/remote/tools/policykit/policykit.build index b027cc85..db216f22 100644 --- a/remote/tools/policykit/policykit.build +++ b/remote/tools/policykit/policykit.build @@ -58,8 +58,11 @@ build () { post_copy() { #Add Polkit User/Group/Shadow to Stage3.2 - echo "polkitd:!:15756::::::" >> ${INIT_DIR}/etc/shadow - echo "polkitd:x:999:999:User for polkitd:/:/sbin/nologin" >> ${INIT_DIR}/etc/passwd - echo "polkitd:x:999:" >> ${INIT_DIR}/etc/group - + local RET=$(add_user polkitd) + if ! [[ $RET ~= [0-9]+ ]] + then + echo "USERADD FAILED: $RET" 1>&2 + exit 1 + fi } + |